home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Macintosh Programmer’s Workshop / MPW QR4 / MPW / MPW.Help < prev   
Text File  |  1991-05-09  |  101KB  |  2,450 lines

  1. MPW QR4 Help Summaries
  2.  
  3.     Help summaries are available for each of the MPW commands.    
  4.     To see the list of all commands enter "Help Commands".  To see
  5.     a partial list of commands, e.g., those relating to compilers, enter
  6.     "Help Languages".  Some commands may appear in more than one category.
  7.     In addition, brief descriptions of Expressions, Patterns, Selections,
  8.     Characters, Shortcuts, and Variables, are also included.
  9.  
  10.     To see Help summaries, Enter a command such as
  11.  
  12.     Help Commands        # a list of all commands
  13.     Help Editing        # a list of commands useful for editing
  14.     Help FileSystem        # a list of commands relating to files, 
  15.                         #     directories, and volumes
  16.     Help Languages        # a list of compiler/assembler names
  17.     Help Projector        # a list of commands in Projector,
  18.                         #     a project/source control system
  19.     Help Scripting        # a list of commands useful primarily within scripts
  20.     Help System            # a list of commands that perform system functions
  21.     Help Miscellaneous    # a list of utilities and aids to software construction
  22.     Help Window            # a list of commands pertaining to windows
  23.     Help Expressions    # summary of expressions
  24.     Help Patterns        # summary of patterns (regular expressions)
  25.     Help Selections     # summary of selections
  26.     Help Characters     # summary of MPW Shell special characters
  27.     Help Shortcuts        # summary of MPW Shell shortcuts
  28.     Help Variables        # summary of the standard MPW shell variables
  29.     
  30.     
  31.     Copyright Apple Computer, Inc. 1986-1991
  32.     All rights reserved.
  33.  
  34. -    
  35. Commands
  36.     This is a full alphabetic list of all commands in MPW.  This includes build-in
  37.     commands, commands that are implemented as scripts, and commands that are 
  38.     implemented as tools.  To get details, enter a command such as
  39.     
  40.     Help AddMenu         # add a menu item
  41.     Help AddPane        # split the window into panes
  42.     Help Adjust            # adjust lines
  43.     Help Alert            # display an alert box
  44.     Help Alias            # define or write command aliases
  45.     Help Align            # align text to left margin
  46.     Help Asm             # MC68xxx Macro Assembler
  47.     Help Backup            # folder file backup
  48.     Help Beep            # generate tones
  49.     Help Begin            # group commands
  50.     Help Break            # break from For or Loop
  51.     Help Browser        # invoke Marker Browser
  52.     Help BuildCommands    # show build commands
  53.     Help BuildMenu        # create the Build menu
  54.     Help BuildProgram    # build the specified program
  55.     Help C                # C compiler
  56.     Help Canon            # canonical spelling tool
  57.     Help Catenate        # concatenate files
  58.     Help CFront            # C++ to C translator
  59.     Help CheckIn         # check a file into a project
  60.     Help CheckOut        # check a file out from a project
  61.     Help CheckOutDir     # specify the directory where checked out files will placed
  62.     Help Choose            # choose or list network file server volumes and printers
  63.     Help Clear            # clear the selection
  64.     Help Close            # close specified windows
  65.     Help CMarker        # generate Mark commands for C and C++ function definitions
  66.     Help Commando        # present a dialog interface for commands
  67.     Help Compare         # compare text files
  68.     Help CompareFiles    # compare text files and interactively view differences
  69.     Help CompareRevisions# compare two revisions of a file in a project
  70.     Help Confirm         # display a confirmation dialog box
  71.     Help Continue        # continue with next iteration of For or Loop
  72.     Help Copy            # copy selection to Clipboard
  73.     Help Count            # count lines and characters
  74.     Help CPlus            # script to compile C++ source
  75.     Help CreateMake        # create a simple makefile
  76.     Help Cut             # copy selection to Clipboard and delete it
  77.     Help Date            # write the date and time
  78.     Help Delete            # delete files and directories
  79.     Help DeleteMenu        # delete user-defined menus and menu items
  80.     Help DeleteNames     # delete user-defined symbolic names
  81.     Help DeletePane        # delete panes from the window
  82.     Help DeleteRevisions # delete previous revisions of files in a project
  83.     Help DeRez            # resource decompiler
  84.     Help Directory        # set or write the default directory
  85.     Help DirectoryMenu    # create the Directory menu
  86.     Help DoIt            # highlight and execute a series of shell commands
  87.     Help DumpCode        # write formatted CODE resources
  88.     Help DumpFile        # display contents of any file
  89.     Help DumpObj         # write formatted object file
  90.     Help Duplicate        # duplicate files and directories
  91.     Help Echo            # echo parameters
  92.     Help Eject            # eject volumes
  93.     Help Entab            # convert runs of spaces to tabs
  94.     Help Equal            # compare files and directories
  95.     Help Erase            # initialize volumes
  96.     Help Evaluate        # evaluate an expression
  97.     Help Execute         # execute command file in the current scope
  98.     Help Exists            # confirm the existence of a file or directory
  99.     Help Exit            # exit from a command file
  100.     Help Export            # make variables available to commands
  101.     Help FileDiv         # divide a file into several smaller files
  102.     Help Files            # list files and directories
  103.     Help Find            # find and select a text pattern
  104.     Help Flush            # flush the tools that the Shell has cached
  105.     Help For             # repeat commands once per parameter
  106.     Help Format            # set or display formatting options for a window
  107.     Help Get            # get a record from an indexed file 
  108.     Help GetErrorText    # display error messages based on message number
  109.     Help GetFileName     # display a Standard File dialog box
  110.     Help GetListItem     # display items for selection in a dialog box
  111.     Help Help            # write summary information
  112.     Help If                # conditional command execution
  113.     Help Lib             # combine object files into a library file
  114.     Help Line            # find line in the target window
  115.     Help Link            # link an application, tool, or resource
  116.     Help Loop            # repeat commands until Break
  117.     Help Make            # build up-to-date version of a program
  118.     Help MakeErrorFile    # create error message textfile
  119.     Help Mark            # assign a marker to a selection
  120.     Help Markers         # list markers
  121.     Help MatchIt         # semi-intelligent language sensitive bracket matcher
  122.     Help MergeBranch     # merge a branch revision onto the trunk
  123.     Help ModifyReadOnly    # enables a read-only Projector file to be edited
  124.     Help Mount            # mount volumes
  125.     Help MountProject    # mount projects
  126.     Help Move            # move files and directories
  127.     Help MoveWindow        # move window to h,v location
  128.     Help NameRevisions    # define a symbolic name
  129.     Help New             # open a new window
  130.     Help Newer            # compare modification dates of files
  131.     Help NewFolder        # create a new folder
  132.     Help NewProject        # create a new project
  133.     Help Open            # open file(s) in window(s)
  134.     Help OrphanFiles     # remove Projector information from a list of files
  135.     Help Parameters        # write parameters
  136.     Help Pascal            # Pascal compiler
  137.     Help PasMat            # Pascal programs formatter
  138.     Help PasRef            # Pascal cross-referencer
  139.     Help Paste            # replace selection with Clipboard contents
  140.     Help PerformReport    # generate a performance report
  141.     Help Position        # display current line position
  142.     Help Print            # print text files
  143.     Help ProcNames        # display Pascal procedure and function names
  144.     Help Project         # set or write the current project
  145.     Help ProjectInfo     # display information about a Project
  146.     Help Quit            # quit MPW
  147.     Help Quote            # echo parameters, quoting if needed
  148.     Help Rename            # rename files and directories
  149.     Help Replace         # replace the selection
  150.     Help Request         # request text from a dialog box
  151.     Help ResEqual        # compares the resources in two files
  152.     Help Revert            # revert window to previous saved state
  153.     Help Rez             # resource compiler
  154.     Help RezDet            # detect inconsistencies in resources
  155.     Help RotateWindows    # send active (frontmost) window to back
  156.     Help Save            # save specified windows
  157.     Help SaveOnClose    # set save behavior when closing windows
  158.     Help Search            # search files for pattern
  159.     Help Set             # define or write Shell variables
  160.     Help SetDirectory    # set the default directory
  161.     Help SetFile         # set file attributes
  162.     Help SetPrivilege    # set access privileges for directories on file servers
  163.     Help SetVersion        # maintain version and revision number
  164.     Help Shift            # renumber command file positional parameters
  165.     Help ShowSelection    # place the selection within an editor window
  166.     Help Shutdown        # power down or restart the machine
  167.     Help SizeWindow        # set a window's size
  168.     Help Sort            # sort or merge lines of text
  169.     Help StackWindows    # arrange windows diagonally
  170.     Help StreamEdit        # scriptable text editor
  171.     Help Target            # make a window the target window
  172.     Help TileWindows     # arrange windows in a tiled fashion
  173.     Help TransferCkid    # move Projector information from one file to another
  174.     Help Translate        # translate characters
  175.     Help Unalias         # remove aliases
  176.     Help Undo            # undo the last edit
  177.     Help Unexport        # remove variable definitions from the export list
  178.     Help Unmark            # remove a marker from a window
  179.     Help Unmount         # unmount volumes
  180.     Help UnmountProject    # unmount projects
  181.     Help Unset            # remove Shell variable definitions
  182.     Help UserVariables    # uses Commando to set all the user variables
  183.     Help Version        # print the version of the MPW Shell
  184.     Help Volumes         # list mounted volumes
  185.     Help WhereIs         # find the location of a file
  186.     Help Which            # determine which file the shell will execute
  187.     Help Windows         # list windows
  188.     Help ZoomWindow        # enlarge or reduce a window's size
  189.     
  190. -
  191. Editing
  192.     The commands in this list are primarily useful for the editing of files.
  193.     To get details, enter a command such as
  194.     
  195.     Help Adjust         # adjust lines
  196.     Help Align          # align text to left margin
  197.     Help Canon          # canonical spelling tool
  198.     Help Clear          # clear the selection
  199.     Help CompareFiles   # compare text files and interactively view differences
  200.     Help Copy           # copy selection to Clipboard
  201.     Help Cut            # copy selection to Clipboard and delete it
  202.     Help Entab          # convert runs of spaces to tabs
  203.     Help FileDiv        # divide a file into several smaller files
  204.     Help Find           # find and select a text pattern
  205.     Help Format         # set or display formatting options for a window
  206.     Help Line           # find line in the target window
  207.     Help Mark           # assign a marker to a selection
  208.     Help Markers        # list markers
  209.     Help MatchIt        # semi-intelligent language sensitive bracket matcher
  210.     Help Paste          # replace selection with Clipboard contents
  211.     Help Replace        # replace the selection
  212.     Help ShowSelection  # place the selection within an editor window
  213.     Help StreamEdit     # scriptable text editor
  214.     Help Translate      # translate characters
  215.     Help Undo           # undo the last edit
  216.     Help Unmark         # remove a marker from a window
  217.     
  218. -
  219. FileSystem
  220.     The commands in this list relate to the manipulation of files and volumes.
  221.     To get details, enter a command such as
  222.     
  223.     Help Catenate        # concatenate files
  224.     Help Close            # close specified windows
  225.     Help Compare         # compare text files
  226.     Help CompareFiles    # compare text files and interactively view differences
  227.     Help Count            # count lines and characters
  228.     Help Delete            # delete files and directories
  229.     Help Directory        # set or write the default directory
  230.     Help DumpFile        # display contents of any file
  231.     Help Duplicate        # duplicate files and directories
  232.     Help Equal            # compare files and directories
  233.     Help Erase          # initialize volumes
  234.     Help Exists         # confirm the existence of a file or directory
  235.     Help FileDiv         # divide a file into several smaller files
  236.     Help Files            # list files and directories
  237.     Help Move            # move files and directories
  238.     Help Mount            # mount volumes
  239.     Help New             # open a new window
  240.     Help Newer            # compare modification dates of files
  241.     Help NewFolder        # create a new folder
  242.     Help Open            # open file(s) in window(s)
  243.     Help Position        # display current line position
  244.     Help Print            # print text files
  245.     Help Rename            # rename files and directories
  246.     Help Save            # save specified windows
  247.     Help Search            # search files for pattern
  248.     Help SetDirectory    # set the default directory
  249.     Help SetFile         # set file attributes
  250.     Help SetPrivilege    # set access privileges for directories on file servers
  251.     Help SetVersion        # maintain version and revision number
  252.     Help Target            # make a window the target window
  253.     Help Unmount         # unmount volumes
  254.     Help Volumes         # list mounted volumes
  255.     Help WhereIs         # find the location of a file
  256.     
  257. -
  258. Languages
  259.     The user should note that under normal circumstances, CFront should not be
  260.     called directly.  It has been made available primarily for those who wish to
  261.     use a C compiler other than MPW C.  If it is desired to see the intermediate 
  262.     C code produced from C++ source, use "CPlus -c …".  For help, enter a command
  263.     such as
  264.     
  265.     Help Asm             # MC68xxx Macro Assembler
  266.     Help C                # C compiler
  267.     Help CFront            # C++ to C translator
  268.     Help CPlus            # script to compile C++ source
  269.     Help Pascal            # Pascal compiler
  270.     
  271. -
  272. Projector
  273.     Projector is a collection of built–in MPW commands and windows that
  274.     help programmers (both individuals and teams) control and account for
  275.     changes to all the files (documentation, source, applications etc.)
  276.     associated with a software project.
  277.     
  278.     Here is a brief summary of the commands (the CheckIn, CheckOut, and
  279.     NewProject commands also have windows that can be opened using the
  280.     “-w” option to the respective command).  For help, enter a command such as
  281.     
  282.     Help CheckIn            # check a file into a project
  283.     Help CheckOut            # check a file out from a project
  284.     Help CheckOutDir        # specify the directory where checked out files will placed
  285.     Help CompareRevisions    # compare two revisions of a file in a project
  286.     Help DeleteNames        # delete user-defined symbolic names
  287.     Help DeleteRevisions    # delete previous revisions of files in a project
  288.     Help MergeBranch        # merge a branch revision onto the trunk
  289.     Help ModifyReadOnly     # enables a read-only Projector file to be edited
  290.     Help MountProject        # mount projects
  291.     Help NameRevisions        # define a symbolic name
  292.     Help NewProject         # create a new project
  293.     Help OrphanFiles        # remove Projector information from a list of files
  294.     Help Project            # set or write the current project
  295.     Help ProjectInfo        # display information about a Project
  296.     Help TransferCkid        # move Projector information from one file to another
  297.     Help UnmountProject     # unmount projects
  298.     
  299. -
  300. Scripting
  301.     The commands in this list are particularly useful within scripts.  
  302.     To get details, enter a command such as
  303.     
  304.     Help AddMenu         # add a menu item
  305.     Help Alert            # display an alert box
  306.     Help Alias          # define or write command aliases
  307.     Help Beep            # generate tones
  308.     Help Begin            # group commands
  309.     Help Break            # break from For or Loop
  310.     Help Confirm         # display a confirmation dialog box
  311.     Help Continue        # continue with next iteration of For or Loop
  312.     Help Date            # write the date and time
  313.     Help DeleteMenu        # delete user-defined menus and menu items
  314.     Help DirectoryMenu    # create the Directory menu
  315.     Help DoIt            # highlight and execute a series of shell commands
  316.     Help Echo            # echo parameters
  317.     Help Evaluate        # evaluate an expression
  318.     Help Execute         # execute command file in the current scope
  319.     Help Exists            # confirm the existence of a file or directory
  320.     Help Exit            # exit from a command file
  321.     Help Export            # make variables available to commands
  322.     Help For             # repeat commands once per parameter
  323.     Help GetFileName     # display a Standard File dialog box
  324.     Help GetListItem     # display items for selection in a dialog box
  325.     Help If                # conditional command execution
  326.     Help Loop            # repeat commands until Break
  327.     Help Parameters        # write parameters
  328.     Help Quote            # echo parameters, quoting if needed
  329.     Help Request         # request text from a dialog box
  330.     Help Set             # define or write Shell variables
  331.     Help Shift            # renumber command file positional parameters
  332.     Help Unexport        # remove variable definitions from the export list
  333.     Help Unset            # remove Shell variable definitions
  334.     
  335. -
  336. System
  337.     The following commands provide direct access from MPW to certain system
  338.     functions.  For help, enter a command such as
  339.     
  340.     Help Choose            # choose or list network file server volumes and printers
  341.     Help Date           # write the date and time
  342.     Help GetErrorText   # display error messages based on message number
  343.     Help SetPrivilege    # set access privileges for directories on file servers
  344.     Help Shutdown        # power down or restart the machine
  345.     
  346. -
  347. Miscellaneous
  348.     The following commands are a conglomeration of miscellaneous utilities
  349.     and tools that are of use in the software construction process.  To get details,
  350.     enter a command such as
  351.     
  352.     Help Backup         # folder file backup
  353.     Help BuildCommands  # show build commands
  354.     Help BuildMenu      # create the Build menu
  355.     Help BuildProgram   # build the specified program
  356.     Help CMarker        # generate Mark commands for C and C++ function definitions
  357.     Help Commando       # present a dialog interface for commands
  358.     Help CreateMake     # create a simple makefile
  359.     Help DeRez          # resource decompiler
  360.     Help DumpCode       # write formatted CODE resources
  361.     Help DumpObj        # write formatted object file
  362.     Help Help           # write summary information
  363.     Help Lib            # combine object files into a library file
  364.     Help Link           # link an application, tool, or resource
  365.     Help Make           # build up-to-date version of a program
  366.     Help MakeErrorFile  # create error message textfile
  367.     Help PasMat         # Pascal programs formatter
  368.     Help PasRef         # Pascal cross-referencer
  369.     Help PerformReport  # generate a performance report
  370.     Help ProcNames      # display Pascal procedure and function names
  371.     Help Rez            # resource compiler
  372.     Help RezDet         # detect inconsistencies in resources
  373.     Help SetVersion     # maintain version and revision number
  374.     Help Sort           # sort or merge lines of text
  375.     Help Unalias        # remove aliases
  376.     Help Version            # print the version of the MPW Shell
  377.     Help Which          # determine which file the shell will execute
  378.     
  379. -
  380. Window
  381.     The following commands are used to manipulate windows.  For details, 
  382.     enter a command such as
  383.     
  384.     Help AddPane        # split the window into panes
  385.     Help Close          # close specified windows
  386.     Help DeletePane        # delete panes from the window
  387.     Help Format         # set or display formatting options for a window
  388.     Help MoveWindow     # move window to h,v location
  389.     Help New            # open a new window
  390.     Help Open           # open file(s) in window(s)
  391.     Help RotateWindows  # send active (frontmost) window to back
  392.     Help Save           # save specified windows
  393.     Help SaveOnClose    # set save behavior when closing windows
  394.     Help ShowSelection  # place the selection within an editor window
  395.     Help SizeWindow     # set a window's size
  396.     Help StackWindows   # arrange windows diagonally
  397.     Help Target         # make a window the target window
  398.     Help TileWindows    # arrange windows in a tiled fashion
  399.     Help Windows        # list windows
  400.     Help ZoomWindow     # enlarge or reduce a window's size
  401.  
  402. -
  403. Variables
  404.     To see the current value, enter a command such as Echo {<var name>}
  405.     
  406.     Variables defined by the MPW Shell:
  407.     
  408.     Echo {Active}            # full pathname of current active window
  409.     Echo {Aliases}            # list of all defined aliases
  410.     Echo {Boot}                # volume name of the boot disk
  411.     Echo {Command}            # full pathname of the last command executed
  412.     Echo {MPW}                # full pathname of the Macintosh Programmer's Workshop.
  413.     Echo {ShellDirectory}    # full pathname of the directory that contains the MPW Shell
  414.     Echo {Status}            # result of the last command executed (0 means successful)
  415.     Echo {SystemFolder}        # full pathname of the system folder
  416.     Echo {Target}            # full pathname of the target window
  417.     Echo {User}                # the current user name (initialized to the “Chooser” name)
  418.     Echo {Windows}            # list of current windows     
  419.     Echo {Worksheet}         # full pathname of the Worksheet window
  420.     
  421.     Variables used by the MPW Shell:
  422.     
  423.     Echo {Commando}            # name of the commando tool
  424.     Echo {Commands}            # list of directories to search for commands
  425.     Echo {DirectoryPath}     # list of common directories to speed changing directories
  426.     Echo {Echo}                # control the echoing of commands to diagnostic output
  427.     Echo {Exit}                # control script termination based on {Status}
  428.     Echo {IgnoreCmdPeriod}    # control use of cmd-. during critical sections
  429.     Echo {HideHelpKey}        # deactivate "help" key on extended keyboard
  430.     Echo {Test}                # control execution of tools and applications
  431.     Echo {AutoIndent}        # auto indent setting used for new windows
  432.     Echo {CaseSensitive}     # control case sensitivity for searching
  433.     Echo {Font}                # font used for new windows
  434.     Echo {FontSize}            # font size used for new windows
  435.     Echo {NewWindowRect}     # window rectangle used for new windows (top,left,bottom,right)
  436.     Echo {PrintOptions}        # options used by the print menu commands
  437.     Echo {SearchBackward}    # control direction of searching
  438.     Echo {SearchType}        # control type of searching (literal/word/expression)
  439.     Echo {SearchWrap}        # control wrap-around search
  440.     Echo {StackOptions}        # options used by the Stack Windows menu command
  441.     Echo {Tab}                # tab size used for new windows
  442.     Echo {TileOptions}        # options used by the Tile Windows menu command
  443.     Echo {WordSet}            # set of characters that constitue a word
  444.     Echo {ZoomWindowRect}    # window rectangle used for a zoomed window (top,left,bottom,right)
  445.     
  446.     Variables automatically set before script execution:
  447.     
  448.     {0}                 name of the currently executing script
  449.     {1}, {2}, … {n}     first, second, and nth parameter to the script
  450.     {#}                 number of parameters
  451.     {Parameters}        equivalent to {1} {2} … {n}
  452.     {"Parameters"}        equivalent to "{1}" "{2}" … "{n}"
  453.     
  454.     Variables used for libraries and include files:
  455.     
  456.     Echo {AIncludes}         # directories to search for assemby-language include files        
  457.     Echo {CIncludes}         # directories to search for C include files
  458.     Echo {CLibraries}        # directory containing C library files
  459.     Echo {Libraries}         # directory containing shared library files
  460.     Echo {PInterfaces}        # directory containing Pascal interface files
  461.     Echo {PLibraries}        # directory containing Pascal library files
  462.     Echo {RIncludes}         # directory containing Rez include files
  463.  
  464. -
  465. Characters
  466.  
  467.     The characters listed below have special meanings in the command language.
  468.  
  469.  
  470.     Space            Space separates words.
  471.     Tab             Tab also separates words.
  472.  
  473.     Return            Return separates commands.
  474.     ;                Semicolon also separates commands.
  475.     |                Pipe separates commands and pipes output to input.
  476.     &&                And separates commands, executing second if first succeeds.
  477.     ||                Or separates commands, executing second if first fails.
  478.     (…)             Parenthesis group commands.
  479.                     Parenthesis also group characters in filename patterns.
  480.  
  481.     #                Comment begins comments.
  482.  
  483.     ∂                Escape (Option-D) quotes the following character.
  484.     '…'             Single quote quotes all other characters.
  485.     "…"             Double quote quotes all characters except ∂, {, and `.
  486.     /…/             Slash quotes all characters except ∂, {, and `.
  487.     \…\             Backslash quotes all characters except ∂, {, and `.
  488.  
  489.     {…}             Braces denote variable substitution.
  490.     `…`             Backquotes denote command substitution.
  491.  
  492.     ?                Question mark matches any character in filename patterns.
  493.     ≈                Approximately (Option-X) matches any string in patterns.
  494.     […]             Brackets enclose character sets in filename patterns.
  495.     *                Star indicates zero or more repetitions in patterns.
  496.     +                Plus indicates one or more repetitions in patterns.
  497.     «…»             European quotes (Option-\ and Option-Shift-\) enclose
  498.                     repeat counts.
  499.  
  500.     <                Less-than indicates an input file specification.
  501.     >                Greater-than indicates an output file specification.
  502.     >>                Indicates appending to an output file specification.
  503.     ≥                Greater-than-or-equal indicates a diagnostic specification.
  504.     ≥≥                Indicates appending to a diagnostic file specification.
  505.     ∑                Capital sigma (option-w) indicates both an output file and
  506.                     diagnostic output file specification.
  507.     ∑∑                Indicates appending to the output and diagnostic file
  508.                     specification.
  509.     
  510.     …                Elipsis (Option-;) signals the Shell to use Commando
  511.  
  512. -
  513. Expressions
  514.  
  515.     Numbers may be expressed in decimal, hexadecimal, octal, or
  516.     binary.  Any of the following formats may be used:
  517.     
  518.     [0-9]+            decimal number
  519.     0x[0-9a-f]+     hexadecimal number
  520.     $[0-9a-f]+        hexadecimal number
  521.     0[0-7]+         octal number
  522.     0b[01]+         binary number
  523.     
  524.     The operators listed below are used in expressions in the
  525.     Evaluate, If, Else If, Break, Continue, and Exit commands.
  526.  
  527.     Alternate spellings of several operators are provided.
  528.     All of the operators are evaluated from left to right.
  529.     Operators with the highest precedence are listed first,
  530.     and operators in the same group have equal precedence.
  531.  
  532.  
  533.     (…)             expression grouping
  534.  
  535.     -                unary negation
  536.     ~                bitwise negation
  537.     !     NOT  ¬     logical NOT (¬ is Option-L)
  538.  
  539.     *                multiplication
  540.     ÷     DIV        division (÷ is Option-/)
  541.     %     MOD        modulus division
  542.  
  543.     +                addition
  544.     -                subtraction
  545.  
  546.     <<                shift left
  547.     >>                shift right
  548.  
  549.     <                less than
  550.     <=     ≤            less than or equal to (≤ is Option-<)
  551.     >                greater than
  552.     >=     ≥            greater than or equal to (≥ is Option->)
  553.  
  554.     ==                equal
  555.     !=     <>   ≠     not equal (≠ is Option-=)
  556.     =~                equal to a pattern
  557.     !~                not equal to a pattern
  558.  
  559.     &                bitwise AND
  560.  
  561.     ^                bitwise XOR
  562.  
  563.     |                bitwise OR
  564.  
  565.     &&     AND        logical AND
  566.  
  567.     ||     OR         logical OR
  568.  
  569. -
  570. Selections - selections specify a selection or insertion point
  571.  
  572.     §                        current selection (Option-6)
  573.     n                        line number n
  574.     !n                        line n lines after end of current selection
  575.     ¡n                        line n lines before start of selection (Option-1)
  576.     position                position (defined below)
  577.     markerName                selection marked by markerName
  578.     pattern                 pattern  (defined below)
  579.     (selection)             selection grouping
  580.     selection:selection     both selections and everything in between
  581.     
  582. position - positions specify an insertion point
  583.  
  584.     •                        position before first character of file (Option-8)
  585.     ∞                        position after last character of file (Option-5)
  586.     Δselection                position before first character of selection (Option-J)
  587.     selectionΔ                position after last character of selection (Option-J)
  588.     selection!n             position n characters after selection
  589.     selection¡n             position n characters before selection (Option-!)
  590.     
  591. pattern - patterns specify characters to be matched
  592.  
  593.     /entireRE/                regular expression - search forward
  594.     \entireRE\                regular expression - search backward
  595.     
  596.     Help Patterns            # See "Help Patterns" for more information.
  597.     
  598. -
  599. Patterns - Patterns specify characters to be matched
  600.  
  601.     /entireRE/                regular expression - search forward
  602.     \entireRE\                regular expression - search backward
  603.     
  604. entireRE
  605.  
  606.     •RE                     regular expression at beginning of line (Option-8)
  607.     RE∞                     regular expression at end of line (Option-5)
  608.     RE                        regular expression
  609.     
  610. RE
  611.  
  612.     simpleExpr                simple regular expression - defined below
  613.     (RE)®digit                tagged RE - refer to match as ®digit (Option-R)
  614.     'string'                literal - no characters within '…' are special
  615.     "string"                literal - only ∂, {, and ` are special within "…"
  616.     RE1RE2                    regular expression RE1 followed by RE2
  617.     
  618. simpleExpr
  619.     
  620.     (RE)                    regular expression grouping
  621.     charExpr                single character regular expression - defined below
  622.     simpleExpr*             simple expression zero or more times
  623.     simpleExpr+             simple expression one of more times
  624.     simpleExpr«n»            simple expression n times (Option-\, Option-Shift-\)
  625.     simpleExpr«n,»            simple expression at least n times
  626.     simpleExpr«n1,n2»        simple expression at least n1, at most n2 times
  627.     
  628. charExpr
  629.     
  630.     character                character (unless it has special meaning)
  631.     ∂character                character - defeats any special meaning (Option-D)
  632.     ?                        any character except Return
  633.     ≈                        zero or more characters, except Return (Option-X)
  634.     [charList]                any character in the list
  635.     [¬charList]             any character not in the list (Option-L)
  636.     
  637. charList
  638.     
  639.     [                        [ first in the list represents itself
  640.     ]                        ] first in the list represents itself
  641.     -                        - first in the list represents itself
  642.     character                character
  643.     charList character        list of characters
  644.     character-character     character range (e.g. A-Z)
  645.     
  646. -
  647. ShortCuts
  648.     The following is a list of MPW Shell shortcuts:
  649.     
  650.     Double click        select word
  651.     Triple click        select line
  652.     Double Clicking on any of the characters (,),[,],{,},',",/,\,` will select
  653.         everything between the character and its mate.
  654.  
  655.     LeftArrow                 move insertion point one character to the left
  656.     RightArrow                 move insertion point one character to the right
  657.     UpArrow                  move insertion point one line above current position
  658.     DownArrow                 move insertion point one line below current position    
  659.     
  660.     Opt-LeftArrow             move insertion point one word to the left
  661.     Opt-RightArrow             move insertion point one word to the right
  662.     
  663.     Shift-LeftArrow             extend selection one character to the left
  664.     Shift-RightArrow         extend selection one character to the right
  665.     Shift-UpArrow              extend selection one line above current position  
  666.     Shift-DownArrow             extend selection one line below current position
  667.     
  668.     Shift-Opt-LeftArrow         extend selection one word to the left
  669.     Shift-Opt-RightArrow     extend selection one word to the right
  670.     
  671.     Cmd-LeftArrow             move insertion point to beginning of current line
  672.     Cmd-RightArrow             move insertion point to end of current line
  673.     Cmd-UpArrow              move insertion point up one screen size
  674.     Cmd-DownArrow             move insertion point down one screen size
  675.     
  676.     Cmd-Shift-LeftArrow         extend selection to beginning of current line
  677.     Cmd-Shift-RightArrow     extend selection to end of current line
  678.     Cmd-Shift-UpArrow          extend selection up one screen size
  679.     Cmd-Shift-DownArrow         extend selection down one screen size
  680.     
  681.     Cmd-Opt-UpArrow             move insertion point to beginning of file
  682.     Cmd-Opt-DownArrow         move insertion point to end of file
  683.     
  684.     Cmd-Shift-Opt-UpArrow     extend selection to beginning of file
  685.     Cmd-Shift-Opt-DownArrow     extend selection to end of file
  686.  
  687.     Delete                     delete character to the left
  688.     Del (Extended Keyboard)     delete character to the right
  689.     
  690.     Shift-Delete             delete character to the left
  691.     Shift-Del                   delete character to the right
  692.     
  693.     Opt-Delete                 delete word to the left
  694.     Opt-Del                     delete word to the right
  695.     
  696.     Cmd-Delete                 delete from current position to end of file
  697.     Cmd-Del                     delete from current position to end of file
  698.     
  699.     Searching shortcuts
  700.         Cmd-Shift-G     reverse the direction of "Find Same"
  701.         Cmd-Shift-H     reverse the direction of "Find Selection"
  702.         Cmd-Shift-T     reverse the direction of "Replace Same"
  703.         Holding down Shift while selecting OK will reverse the direction
  704.             of "Find" and "Find and Replace"
  705.     
  706.     Holding down Option while selecting "Tile Windows" or "Stack Windows"
  707.         will include the worksheet in the tiling or stacking
  708.     Holding down Option while pressing Return will disable auto-indent
  709.         for that line.
  710.     Holding down Option while pressing Enter will invoke Commando on that
  711.         command line.
  712.     
  713.     In Dialogs without an EditText item
  714.         Y                Yes
  715.         N                No
  716.         CMD .            Cancel
  717.         ESC             Cancel
  718.  
  719. -
  720. AddMenu         # add a menu item
  721. AddMenu [menu [item [command…]]]  > menuList
  722.     
  723.     Note: Item can contain the following metacharacters ("<char>" means
  724.     any character):
  725.         /<char>     Assign the keyboard equivalent Command-<char>
  726.         !<char>     Place <char> to the left of the menu item
  727.         ^n            Item has an icon, where n is the icon number
  728.         (            Item is disabled
  729.         <style        Item has a special style: "style" can be any of the following:
  730.                         B    Bold
  731.                         I    Italic
  732.                         U    Underline
  733.                         O    Outline
  734.                         S    Shadow
  735.  
  736. -
  737. AddPane            # split the window into panes
  738. AddPane    [-p paneSpec] [-y ySplit | -h xSplit] [window]
  739.     -p paneSpec                # choose a pane to split
  740.     -y ySplit                # horizontal split at ySplit pixels from top
  741.     -x xSplit                # vertical split at xSplit pixels from left
  742.     
  743.     Note: paneSpec is an alternating catenation of strings of the 
  744.     form cm and rn, where m is a column ordinal and n is a row ordinal.
  745.  
  746. -
  747. Adjust            # adjust lines
  748. Adjust [-c count] [-l spaces] selection [window]
  749.     -c count                # repeat the Adjust count times
  750.     -l spaces                # shift lines by “spaces” spaces
  751.  
  752. -    
  753. Alert            # display an alert box
  754. Alert [-s] [message…] < file
  755.     -s                        # silent, don't beep when dialog is displayed
  756.  
  757. -    
  758. Alias            # define or write command aliases
  759. Alias [name [word…]]  > aliasList
  760.  
  761. -    
  762. Align            # align text to left margin
  763. Align [-c count] selection [window]
  764.     -c count                # repeat the Align count times
  765.  
  766. -    
  767. Asm             # MC68xxx Macro Assembler
  768. Asm [option…] [file…]  < file > listing ≥ progress
  769.     -addrsize size            # set size of address display
  770.     -blksize blocks         # use blocks * 512 byte I/O buffers
  771.     -case on                # distinguish between upper and lower case
  772.     -case obj[ect]            # preserve case in object file
  773.     -case off                # ignore case (default)
  774.     -c[heck]                # syntax check only, don't create object file
  775.     -d[efine] name            # equivalent to: name EQU 1
  776.     -d[efine] name=value    # equivalent to: name EQU value
  777.     -d[efine] &name         # equivalent to: &name SET[AC] 1
  778.     -d[efine] &name=value    # equivalent to: &name SET[AC] value
  779.     -e[rrlog] file            # write errors and warnings to file
  780.     -f                        # suppress page ejects in listing
  781.     -font name[,size]        # set listing font and size
  782.     -h                        # suppress page headers in listing
  783.     -i directory,…            # search for includes in directory,…
  784.     -l                        # write full listing to output
  785.     -lo file                # listing output file or directory
  786.     -model far                # allow generation of load-time relocatable 32-bit references    
  787.     -model near                # prohibit generation of load-time relocatable 32-bit
  788.                             #    references (the default)
  789.     -o objname                # generate code in file or directory objname
  790.     -pagesize l[,w]         # set listing page length and width
  791.     -print mode             # equivalent to: PRINT mode
  792.     -p                        # write progress information to diagnostics
  793.     -s                        # write short listing to output
  794.     -sym off                # no SADE records
  795.     -sym on|full            # full SADE records; can modify with [,nolines] [,notypes] [,novars]
  796.     -t                        # write time and total lines to diagnostics
  797.     -w                        # suppress warnings
  798.     -wb                     # suppress warnings on branch instructions
  799.  
  800. -    
  801. Backup            # folder file backup
  802. Backup [option…] -from folder -to folder [file…]  > commands ≥ progress
  803.     -a                        # copy all files in "from" not in "to"
  804.     -alt                    # alternate prompts for disk drives
  805.     -c                        # create "to" folders if they don't exist
  806.     -check checkopt,…        # produce reports based on checkopt
  807.                             # checkopt=from     "from" not in "to"
  808.                             #           to        "to" not in "from"
  809.                             #           allfroms "from" not in "to" even if none
  810.                             #           alltos    "to" not in "from" even if none
  811.                             #           folders    "from" folders not in "to"
  812.                             #           newer    "to"s newer than "from"s
  813.     -co filename            # redirect -check reports to filename
  814.     -compare [only][,'opts']# write compare commands for out-of-date files
  815.     -d                        # write delete commands for files in "to" not in "from"
  816.     -do [only][,'command']    # write the command string specified by command…
  817.     -e                        # eject disk when done
  818.     -from folder|drive        # specify source folder or drive (1 or 2)
  819.     -l                        # write directory listing of "from" files
  820.     -lastcmd 'command'        # write the command string as the last command
  821.     -level n                # restrict -a and -d to files beyond level n
  822.     -m                        # multi-disk -- more than one "from" or "to" disk
  823.     -n                        # show folder nesting by indenting commands 
  824.     -p                        # write progress information to diagnostics
  825.     -r                        # recursively process nested folders
  826.     -revert                 # revert "to" files to their "from" state
  827.     -since date[,time]|fname# process only files since specified time
  828.     -sync                    # synchronize both source and destination folders
  829.     -t type                 # process only files of specified type
  830.     -to folder|drive        # specify destination folder or drive (1 or 2)
  831.     -y                        # suppress duplicate -y option
  832.  
  833. -    
  834. Beep            # generate tones
  835. Beep [note [,duration [,level]]]…
  836.     #    duration is given in sixtieths of a second (default is 15)
  837.     #    sound level is given as a number from 0 to 255 (default is 128)
  838.  
  839. -    
  840. Begin            # group commands
  841. Begin
  842.     command…
  843. End
  844.  
  845. -    
  846. Break            # break from For or Loop
  847. Break [If expression]
  848.  
  849. -
  850. Browser            # invoke Marker Browser
  851.  
  852.                 # The MPW Browser command is used to navigate source files or other text.  It 
  853.                 # presents a window containing a list of the files in the current directory
  854.                 # and, for the selected file, a list of markers.  Double-clicking on the marker
  855.                 # opens the file with the selection point at the marker.  Entering a marker name
  856.                 # in a text box searches all files in the directory for that marker, and if found 
  857.                 # opens the file with the selection point at the marker.
  858.  
  859. -
  860. BuildCommands    # show build commands
  861. BuildCommands program [option…] > commands
  862.     option…                 # Make command options
  863.  
  864. -
  865. BuildMenu        # create the Build menu
  866. BuildMenu
  867.  
  868. -
  869. BuildProgram    # build the specified program
  870. BuildProgram program [option…] > log
  871.     option…                 # Make command options
  872.  
  873. -
  874. C                # C compiler
  875. C [option…] [file]    < file > preprocessor ≥ progress
  876.     -b                      # put string constants into code and generate PC-relative references
  877.                             #     for function addresses
  878.     -b2                     # implies '-b' above, and allows string constants to be overlaid
  879.     -b3                     # overlaid string constants in code (but A5-relative references
  880.                             #    for function addresses)
  881.     -bigseg                    # generate single large (>32K) code segment, 68020 only
  882.     -c                        # syntax check only, don't create object file
  883.     -d name                 # equivalent to: #define name 1
  884.     -d name=string            # equivalent to: #define name string
  885.     -e                        # write preprocessor results to output
  886.     -e2                     # implies '-e' above, and strips comments
  887.     -elems881                # generate MC68881 code for transcendentals
  888.     -i directory            # search for includes in directory
  889.     -k directory            # create load/dump files in directory
  890.     -m                        # generate 32-bit references for data (less efficient code)
  891.     -mbg ch8                # v2.0 compatible macsbug symbols
  892.     -mbg off                # no macsbug symbols in the code 
  893.     -mbg on|full            # full macsbug symbols
  894.     -mbg <n>                # macsbug symbols to length <n> (<n> can be 0..255)
  895.     -mc68020                # generate MC68020 code 
  896.     -mc68881                # generate MC68881 code for arithmetic operations
  897.     -model farCode|         # generate load-time relocatable 32-bit references for
  898.         farData|far         #   code, data, or both
  899.     -model nearCode|        # generate 16-bit references for code, data, or both 
  900.         nearData|near       #   (the default)
  901.     -n                        # turn pointer assignment incompatibility errors into warnings
  902.     -notonce                # do not automatically suppress multiple inclusion of files
  903.     -o objname                # generate code in file or directory objname
  904.     -opt off                # don't apply code optimizations
  905.     -opt on | full            # choose level of code optimization (on is default); 
  906.                             #   can modify with [,nopeep] [,nocse] 
  907.                             #   (no peephole, no common subexpression)
  908.     -p                        # write progress information to diagnostic
  909.     -r                        # warn on calling a function that has no definition
  910.     -s segment                # generate code in segment
  911.     -sym off                # don't generate SADE records
  912.     -sym on | full            # generate SADE records; can modify with [,nolines] [,notypes] [,novars]
  913.     -t                        # write compilation time to diagnostic
  914.     -trace always|never        # enable/disable calls to profiler or MacApp debugger
  915.                             #     (overrides #pragma trace on|off)
  916.     -trace on|off            # enable/disable calls to profiler or MacApp debugger
  917.                             #    (subject to #pragma trace on|off)
  918.     -u name                 # equivalent to: #undef name
  919.     -warnings on|off|full    # set warning level; "on" is the default
  920.     -y directory            # create temporary files in directory
  921.  
  922. -    
  923. Canon            # canonical spelling tool
  924. Canon [option…] dictionary [file…]    < file > new
  925.     -s                        # case sensitive replacement
  926.     -a                        # assembler identifiers (include $, %, @)
  927.     -c n                    # consider only the first n characters
  928.  
  929. -    
  930. Catenate        # concatenate files
  931. Catenate [file…]  < file > catenation
  932.  
  933. -    
  934. CFront            # C++ to C translator
  935. CFront [option…] [file…] < file > intermediate output ≥ progress
  936.     -a                      # force ANSI-style intermediate C code (default)
  937.     -a0                     # force K&R-style (pre-ANSI) intermediate C code
  938.     -a1                     # force ANSI-style intermediate C code (default)
  939.     -c                      # intermediate code to standard output; no object file
  940.     -d name                 # equivalent to: #define name 1
  941.     -d name=string          # equivalent to: #define name string
  942.     -e                      # write preprocessor results to output
  943.     -e2                     # implies '-e' above, and strips comments
  944.     -elems881               # generate MC68881 code for transcendentals
  945.     -f filename             # act as if input comes from named file when it actually is from stdin 
  946.     -f1                     # send text version of C code to C compiler (no token stream)
  947.     -i directory            # search for includes in directory
  948.     -mc68020                # generate MC68020 code 
  949.     -mc68881                # generate MC68881 code for arithmetic operations
  950.     -mtbl0                  # suppress output of method tables for Object Pascal Classes
  951.     -mtbl1                  # force output of method tables for Object Pascal Classes
  952.     -n                      # Turn pointer assignment incompatibilty errors into warnings
  953.     -p                      # write progress information to diagnostic
  954.     -s segment              # generate code in segment
  955.     -u name                 # equivalent to: #undef name
  956.     -vtbl0                  # suppress output of virtual tables for ordinary class
  957.     -vtbl1                  # force output of virtual tables for ordinary class
  958.     -vtbl2                  # new improved output algorithm for virtual tables
  959.     -w                      # suppress warnings
  960.     -w1                     # generate additional warnings from CFront
  961.     -w3                     # passed through to C compiler (supresses unused warnings)
  962.     -y directory            # create temporary files in directory
  963.     -z0                     # force 'inline' functions to be non-inline
  964.     -z3                     # supress name encoding of local vars and struct members (default)
  965.     -z4                     # encode names of local vars and struct members
  966.     -z6                     # force enums always to be int variables
  967.     -z7                     # relax requirement on static class member initialization 
  968.  
  969. -
  970. CheckIn         # check a file into a project
  971. CheckIn -w | -close | ([options…] files…) > progress
  972.     -a                        # checkin all files in current directory
  973.     -b                        # check in files… as branches
  974.     -c                        # cancel if conflict occurs (avoids dialog)
  975.     -cf file                # the comment is contained in file.
  976.     -close                    # close the Check In window
  977.     -cs comment             # a description of changes made to the file
  978.     -delete                 # delete the file after checking it in
  979.     -m                        # check out the files for modification after checking in
  980.     -n                        # answer no to all dialogs (avoids dialogs)
  981.     -new                    # add a new file to the project
  982.     -p                        # write progress information to standard output
  983.     -project project        # name of project that contains the files
  984.     -t task                 # a short description of task accomplished
  985.     -touch                    # touch the mod date of file after checking in
  986.     -u user                 # name of current user
  987.     -w                        # open the Check In window
  988.     -y                        # answer yes to all dialogs (avoids dialogs)
  989.  
  990. -
  991. CheckOut        # check a file out from a project
  992. CheckOut -w | -close | ([options…] files…) > progress
  993.     -a                        # check out all the files in the current project
  994.     -b                        # checkout specified files on a new branch
  995.     -c                        # cancel if conflict occurs (avoids dialog)
  996.     -cancel                 # cancel the checkout of the files
  997.     -cf file                # the comment is contained in files
  998.     -close                    # close the Check Out window
  999.     -cs comment             # a short description of changes
  1000.     -d dir                    # directory where the checked out files should go
  1001.     -m                        # check out a modifiable copy of the file
  1002.     -n                        # answer no to all dialogs (avoids dialogs)
  1003.     -newer                    # checkout latest copy of all files in the project
  1004.     -noTouch                # don't touch the mod date of the checked out files
  1005.     -open                    # open the files after checking out
  1006.     -p                        # write progress information to standard output
  1007.     -project project        # name of project that contains the files
  1008.     -r                        # recursively checkout files
  1009.     -t task                 # a short description of task accomplished
  1010.     -u user                 # name of current user
  1011.     -update                 # checkout latest copy of all files you already have
  1012.     -w                        # open the Check Out window
  1013.     -y                        # answer yes to all dialogs (avoids dialogs)
  1014.  
  1015. -
  1016. CheckOutDir     # specify the directory where checked out files will placed
  1017. CheckOutDir [-project project | -m] [-r] [-x | directory]
  1018.     -project project        # name of project to associate with the checkout directory
  1019.     -m                        # list the checkout directories of all root projects
  1020.     -r                        # recursively set or display the checkout directories
  1021.     -x                        # reset the checkout directories to ":"
  1022.  
  1023. -
  1024. Choose            # choose or list network file server volumes and printers
  1025. Choose [option…] [[zone]:server[:volume] …]
  1026.     -askpw                    # ask for server password (in a "safe" dialog box)
  1027.     -askvp                    # ask for volume password (in a "safe" dialog box)
  1028.     -c                        # output in the form of further "Choose" commands.
  1029.     -cp                     # print driver name and type of current printer.
  1030.     -dr driverFileName        # name of printer driver file in system folder (e.g. "LaserWriter")
  1031.     -guest                    # log-in to the file server as a guest.
  1032.     -list                    # list entities (don't choose them).
  1033.     -p                        # print version information.
  1034.     -pr                     # choose printers (instead of file servers).
  1035.     -pw password            # specify server log-in password.
  1036.     -u username             # specify user name for server log-in.
  1037.     -v                        # verbose (print names of volumes really mounted).
  1038.     -vp volumePassword        # specify volume password (to mount it).
  1039.     -type type                # specify type of entity to list or choose (or '≈').
  1040.  
  1041.     Names take the form     "zone:server:volume"
  1042.  
  1043.     The wildcard '≈' may be used in place of a zone, server, volume or
  1044.     type name.    A leading ':' (empty zone name) or '*:' indicates the
  1045.     current zone.  A name of the form "…server:" will mount all volumes
  1046.     on the server, unless a specific volume name is given.
  1047.  
  1048. -    
  1049. Clear            # clear the selection
  1050. Clear [-c count] selection [window]
  1051.     -c count                # repeat the Clear count times
  1052.  
  1053. -    
  1054. Close            # close specified windows
  1055. Close [-y | -n | -c] [ -a | window…]
  1056.     -y                        # save modified windows before closing (avoids dialog)
  1057.     -n                        # don't save any modified windows (avoids dialog)
  1058.     -c                        # cancel if there is a modified window (avoids dialog)
  1059.     -a                        # close all the windows
  1060.  
  1061. -
  1062. CMarker     # generate Mark commands for C and C++ function definitions
  1063. CMarker [option…] [file…]
  1064.     -a[nachronisms]            # suppress anachronisms messages
  1065.     -d[efine] name[=string]    # define name to the preprocessor (same as #define)
  1066.         [,name[=string]]… 
  1067.     -e                        # show macro expansion in the listing (default with -ppout)
  1068.     -ext[ensions] on|off     # turn on or off Apple compiler extensions (default on)
  1069.     -errors                    # suppress marking if errors are detected
  1070.     -i[ncludes] pathname     # search for include files in the specified directories (Max of 15)
  1071.         [,pathname],… 
  1072.     -lang[uage] C|"C++"        # specify target sources as either C or C++ (Default is C)
  1073.     -linesize n                # maximum number of characters generated in a single listing line
  1074.     -l[ist[ing]]             # generate a listing of the source to stdout
  1075.     -mc68881                # define the macro name mc68881 as having the value 1
  1076.     -msi                     # mark include (header) files
  1077.     -pp                        # preprocessing only (no markers will be generated)
  1078.     -ppout filename            # write the preprocessor output to the specified filename
  1079.     -p[rogress]                # write version, progress and summary information to stderr
  1080.     -showskipped             # show lines skipped by conditional compilation in the listing output
  1081.     -t                        # display processing time and number of lines to stderr
  1082.     -u[ndefine] name         # undefine the preprocessor symbol name  (same as #undef)
  1083.         [,name]…    
  1084.  
  1085. -    
  1086. Commando        # present a dialog interface for commands
  1087. Commando [command] [-modify]
  1088.     -modify                 # enable Commando’s built-in editor
  1089.  
  1090. -    
  1091. Compare         # compare text files
  1092. Compare [option…] file1 [file2]  < file2 > differences ≥ progress
  1093.     -b                        # treat several blanks or tabs as a single blank
  1094.     -c c1-c2[,c1-c2]        # compare only specified columns
  1095.     -d depth                # maximum stack depth
  1096.     -e context                # display specified number of context lines
  1097.     -g groupingFactor        # grouping factor (matching lines for resync)
  1098.     -h width                # write differences horizontally
  1099.     -l                        # lower case (i.e. ignore case differences)
  1100.     -m                        # suppress displays of mismatched lines
  1101.     -n                        # don't write to output if files match
  1102.     -p                        # write progress information to diagnostics
  1103.     -s                        # use static grouping factor
  1104.     -t                        # ignore trailing blanks
  1105.     -v                        # suppress line numbers in vertical displays
  1106.     -x                        # don't expand tabs
  1107.  
  1108. -    
  1109. CompareFiles    # compare text files and interactively view differences
  1110. CompareFiles [-9 | -13 | -b x y | -Portrait | -TwoPage] oldFile newFile
  1111.     -9                        # assume a screen size of 512 x 342
  1112.     -13                     # assume a screen size of 640 x 480
  1113.     -b x y                    # tile windows into the rectangle specified by x y
  1114.     -Portrait                # screen size for Apple Macintosh Portrait Display
  1115.     -TwoPage                # screen size for Apple Two-Page Monochrome Monitor
  1116.  
  1117. -    
  1118. CompareRevisions # compare two revisions of a file in a project
  1119. CompareRevisions file…
  1120.  
  1121. -    
  1122. Confirm         # display a confirmation dialog box
  1123. Confirm [-t] [message…] < file
  1124.     -t                        # three buttons (Yes, No, Cancel)
  1125.  
  1126. -    
  1127. Continue        # continue with next iteration of For or Loop
  1128. Continue [If expression]
  1129.  
  1130. -    
  1131. Copy            # copy selection to Clipboard
  1132. Copy [-c count] selection [window]
  1133.     -c count                # copy the nth selection, where n = count
  1134.  
  1135. -    
  1136. Count            # count lines and characters
  1137. Count [-l] [-c] [file…]  < file > counts
  1138.     -l                        # write only line counts
  1139.     -c                        # write only character counts
  1140.  
  1141. -    
  1142. CPlus            # script to compile C++ source
  1143. CPlus [option…] [file…] < file > intermediate output ≥ progress
  1144.     -a                      # force ANSI-style intermediate C code (default)
  1145.     -a0                     # force K&R-style (pre-ANSI) intermediate C code
  1146.     -a1                     # force ANSI-style intermediate C code (default)
  1147.     -b                      # put string constants into code and generate PC-relative references
  1148.     -b2                     # implies '-b' above, and allows string constants to be overlaid
  1149.     -b3                     # overlaid string constants in code (but not PC-relative refs.)
  1150.     -c                      # intermediate code to standard output; no object file
  1151.     -d name                 # equivalent to: #define name 1
  1152.     -d name=string          # equivalent to: #define name string
  1153.     -e                      # write preprocessor results to output
  1154.     -e2                     # implies '-e' above, and strips comments
  1155.     -elems881               # generate MC68881 code for transcendentals
  1156.     -f filename             # act as if input comes from named file when it actually is from stdin 
  1157.     -f1                     # send text version of C code to C compiler (no token stream)
  1158.     -i directory            # search for includes in directory
  1159.     -m                      # generate 32-bit references for data (less efficient code)
  1160.     -mbg ch8                # MPW 2.0 compatible macsbug symbols
  1161.     -mbg off                # no macsbug symbols in the code (link/unlk only if necessary)
  1162.     -mbg on|full            # full macsbug symbols
  1163.     -mbg <n>                # macsbug symbols to length <n> (<n> can be 0..63)
  1164.     -mc68020                # generate MC68020 code 
  1165.     -mc68881                # generate MC68881 code for arithmetic operations
  1166.     -mtbl0                  # suppress output of method tables for Object Pascal Classes
  1167.     -mtbl1                  # force output of method tables for Object Pascal Classes
  1168.     -n                      # Turn pointer assignment incompatibilty errors into warnings
  1169.     -o objname              # generate code in file or directory objname
  1170.     -p                      # write progress information to diagnostic
  1171.     -s segment              # generate code in segment
  1172.     -sym off                # no SADE records
  1173.     -sym on|full            # full SADE records; can modify with [,nolines] [,notypes] [,novars]
  1174.     -t                      # write C compilation time to diagnostic
  1175.     -u name                 # equivalent to: #undef name
  1176.     -vtbl0                  # suppress output of virtual tables for ordinary class
  1177.     -vtbl1                  # force output of virtual tables for ordinary class
  1178.     -vtbl2                  # new improved output algorithm for virtual tables
  1179.     -w                      # suppress warnings
  1180.     -w1                     # generate additional warnings from CFront
  1181.     -w3                     # passed through to C compiler (supresses unused warnings)
  1182.     -y directory            # create temporary files in directory
  1183.     -z0                     # force 'inline' functions to be non-inline
  1184.     -z3                     # supress name encoding of local vars and struct members (default)
  1185.     -z4                     # encode names of local vars and struct members
  1186.     -z6                     # force enums always to be int variables
  1187.     -z7                     # relax requirement on static class member initialization 
  1188.  
  1189. -
  1190. CreateMake        # create a simple makefile
  1191. CreateMake [-Application [-c creator] | -Tool | -DA | SIOW
  1192.             -CR -m mainEntryPoint -rt resourceType
  1193.             [-t type] [-c creator] ] [-sym on]
  1194.             [-mc68020 | -mc68881 | -elems881] program file…
  1195.     -Application            # create an Application (default)
  1196.     -c creator                # optional Creator for Application or Code Resource
  1197.     -Tool                    # create a Tool
  1198.     -DA                     # create a Desk Accessory
  1199.     -CR                     # create a Code Resource
  1200.     -SIOW                    # create a Simple Input/Output Window
  1201.     -m mainEntryPoint        # required Main Entry Point for Code Resource
  1202.     -rt resourceType        # required Resource Type for Code Resource
  1203.     -t type                 # optional File Type for Code Resource
  1204.     -sym on                 # include SADE information in the object file
  1205.     -mc68020                # generate 68020 instructions
  1206.     -mc68881                # generate 68881 instructions for elementary operations
  1207.     -elems881                # generate 68881 instructions for transcendental functions
  1208.  
  1209. -
  1210. Cut             # copy selection to Clipboard and delete it
  1211. Cut [-c count] selection [window]
  1212.     -c count                # cut the next count selections
  1213.  
  1214. -    
  1215. Date            # write the date and time
  1216. Date ([-a | -s] [-d | -t] [-c seconds]) | [-n] > date
  1217.     -a                        # abbreviated date (e.g. Wed, Jun 18, 1986)
  1218.     -s                        # short date (e.g. 6/18/86)
  1219.     -d                        # write date only
  1220.     -t                        # write time only
  1221.     -c seconds                # write date corresponding to seconds
  1222.     -n                        # write seconds since January 1, 1904
  1223.  
  1224. -
  1225. Delete            # delete files and directories
  1226. Delete [-y | -n | -c] [-i] [-p] name…  ≥ progress
  1227.     -y                        # delete directory contents (avoids dialog)
  1228.     -n                        # don't delete directory contents (avoids dialog)
  1229.     -c                        # cancel if a directory is to be deleted (avoids dialog)
  1230.     -i                        # ignore errors (no diagnostics)
  1231.     -p                        # write progress information to diagnostics
  1232.  
  1233. -    
  1234. DeleteMenu        # delete user-defined menus and menu items
  1235. DeleteMenu [menuName [itemName]]
  1236.  
  1237. -
  1238. DeleteNames     # delete user-defined symbolic names
  1239. DeleteNames [-u user] [-project project] [-public | private] [-r] [names… | -a]
  1240.     -u user                 # name of current user
  1241.     -private                # delete private names
  1242.     -project project        # name of project that contains the files
  1243.     -public                 # delete public names (the default)
  1244.     -r                        # delete names recursively
  1245.     -a                        # delete all names
  1246.  
  1247. -
  1248. DeletePane        # delete panes from the window
  1249. DeletePane [-p paneSpec | -a] [window]
  1250.     -p paneSpec                # choose a  pane to delete
  1251.     -a                        # reset the window to one pane
  1252.     
  1253.     Note: paneSpec is an alternating catenation of strings of the 
  1254.     form cm and rn, where m is a column ordinal and n is a row ordinal.
  1255.  
  1256. -
  1257. DeleteRevisions # delete previous revisions of files in a project
  1258. DeleteRevisions [-u user] [-project project] [-file] [-y] revision…
  1259.     -u user                 # name of current user
  1260.     -project project        # name of project that contains the files
  1261.     -file                    # deletes the file and all its revisions
  1262.     -y                        # delete the file/revision (avoids dialog)
  1263.  
  1264. -    
  1265. DeRez            # resource decompiler
  1266. DeRez [option…] resourceFile [file…]  > description ≥ progress
  1267.     -c[ompatible]            # generate output compatible with Rez 1.0
  1268.     -e[scape]                # don't escape chars < $20 or > $D8
  1269.     -d[efine] name[=value]    # equivalent to #define name [value]
  1270.     -i[nclude] pathname     # search this path when looking for #include files
  1271.     -m[axstringsize] n        # write strings n characters per line
  1272.     -only typeExpr            # process only resources of this type
  1273.     -p[rogress]             # write progress information to diagnostics
  1274.     -rd                     # suppress warnings for redeclared types
  1275.     -s[kip] typeExpr        # skip resources of this type
  1276.     -u[ndef] name            # equivalent to #undef name
  1277.  
  1278.     Note: A typeExpr may have one of these forms:
  1279.           type
  1280.         "'type'(id)"
  1281.         "'type'(id:id)"
  1282.         "'type'(∂"name∂")"
  1283.  
  1284. -    
  1285. Directory        # set or write the default directory
  1286. Directory [-q | directory]    > directory
  1287.     -q                        # don't quote directories with special characters
  1288.  
  1289. -    
  1290. DirectoryMenu    # create the Directory menu
  1291. DirectoryMenu [directory…]
  1292.  
  1293. -
  1294. DoIt            # highlight and execute a series of shell commands
  1295. DoIt (CommandFile [-echo] [-dump]) | [-selection]
  1296.     -echo                    # echo commands before execution
  1297.     -dump                    # dump unexecuted commands after error
  1298.     -selection                # execute command in the current selection
  1299.  
  1300. -
  1301. DumpCode        # write formatted CODE resources
  1302. DumpCode [option…] resourceFile  > dump ≥ progress
  1303.     -n                      # dump only resource names
  1304.     -d                      # don't dump object code
  1305.     -h                      # don't write headers (offsets, hex, etc.)
  1306.     -a                      # show offsets from beginning of segment
  1307.     -jt                     # don't dump jump table
  1308.     -di                     # don't dump data initialization info
  1309.     -ri                     # don't dump a5- and segment-relocation info
  1310.     -p                      # write progress information to diagnostics
  1311.     -r byte1[,byte2]        # dump code from address byte1 (through byte2)
  1312.     -rt type[=id]           # dump only resources with this type (and id)
  1313.     -s name                 # dump only resource with this name
  1314.  
  1315. -
  1316. DumpFile        # display contents of any file
  1317. DumpFile  [ option… ]  filename > dump ≥ progress
  1318.     -rf                     # display the resource fork of the file. (Default is data fork.)
  1319.     -bf                     # display both forks of the file
  1320.     -a                        # suppress display of ASCII character values.
  1321.     -h                        # suppress display of hexadecimal characters.
  1322.     -o                        # suppress display of file offsets.
  1323.     -w nn                    # width - display nn bytes on each line of output.
  1324.     -g nn                    # group nn bytes together without intervening spaces.
  1325.     -p                        # write progress information to diagnostic output.
  1326.     -r byte1[,byteN]        # display only the byte range from byte1 to byteN.
  1327.  
  1328. -    
  1329. DumpObj         # write formatted object file
  1330. DumpObj [option…] objectFile  > dump ≥ progress
  1331.     -co                        # only dump disassembly
  1332.     -d                        # don't dump object code
  1333.     -h                        # don't write headers (offsets, hex, etc.)
  1334.     -i                        # use ids, rather than names, in dump
  1335.     -jn                     # just use names, rather than ids, in dump
  1336.     -l                        # dump file locations of object records
  1337.     -m name                 # dump only module "name" or module containing 
  1338.                             # entry-point "name" (-m option may be used repeatedly)
  1339.     -n                        # dump only the dictionary of names
  1340.     -p                        # write progress information to diagnostics
  1341.     -r byte1[,byte2]        # dump code from byte1 in file (through byte2)
  1342.     -sym [Off]                # disable symbolic output
  1343.          [On | Full]        # enable symbolic output (default), can be followed by:
  1344.             [,NoLabels]     #    omit label information
  1345.             [,NoLines]        #    omit source line information
  1346.             [,NoTypes]        #    omit type information
  1347.             [,NoVars]        #    omit variable information
  1348.     -mods                    # dump a module summary with entry point information
  1349.     -mh                     # omit module summary header
  1350.  
  1351. -    
  1352. Duplicate        # duplicate files and directories
  1353. Duplicate [-y | -n | -c] [-p] [-d | -r] name… target  ≥ progress
  1354.     -y                        # overwrite target files (avoids dialog)
  1355.     -n                        # don't overwrite target files (avoids dialog)
  1356.     -c                        # cancel if conflict occurs (avoids dialog)
  1357.     -p                        # write progress information to diagnostics
  1358.     -d                        # duplicate data fork only
  1359.     -r                        # duplicate resource fork only
  1360.  
  1361. -    
  1362. Echo            # echo parameters
  1363. Echo [-n] [parameter…]    > parameters
  1364.     -n                        # don't write return following the parameters
  1365.  
  1366. -    
  1367. Eject            # eject volumes
  1368. Eject [-m] volume…
  1369.     -m                        # leave the volume mounted
  1370.  
  1371. -    
  1372. Entab            # convert runs of spaces to tabs
  1373. Entab [option…] [file…]  < file > tabbed ≥ progress
  1374.     -a minValue             # Min run of blanks that can be replaced with a tab
  1375.     -d tabValue             # input tab setting
  1376.     -l quote…                # left quotes that prevent EnTab (default '")
  1377.     -n                        # no quote characters, EnTab everything
  1378.     -p                        # write progress information to diagnostics
  1379.     -q quote…                # quotes that prevent EnTab (default '")
  1380.     -r quote…                # right quotes that prevent EnTab (default '")
  1381.     -t tabValue             # output tab setting
  1382.  
  1383. -    
  1384. Equal            # compare files and directories
  1385. Equal [-d | -r] [-i] [-p] [-q] name… target  > differences ≥ progress
  1386.     -d                        # compare data forks only
  1387.     -r                        # compare resource forks only
  1388.     -i                        # ignore files in target not in directory name
  1389.     -p                        # write progress information to diagnostics
  1390.     -q                        # quiet - don't write output, just set {Status}
  1391.  
  1392. -    
  1393. Erase            # initialize volumes
  1394. Erase [-y] [-s] volume…
  1395.     -y                        # yes - erase the disk (avoids dialog)
  1396.     -s                        # single-sided - 400K (default 800K)
  1397.  
  1398. -
  1399. Evaluate        # evaluate an expression
  1400. Evaluate [-h | -o | -b] [word…]  > value
  1401. Evaluate Name [binary operator]= expression
  1402.     -h                        # display result in hexadecimal (leading 0x)
  1403.     -o                        # display result in octal (leading 0)
  1404.     -b                        # display result in binary (leading 0b)
  1405.  
  1406. -
  1407. Execute         # execute command file in the current scope
  1408. Execute commandFile
  1409.  
  1410. -
  1411. Exists            # confirm the existence of a file or directory
  1412. Exists [-d | -f | -w] [-q] name…  > file
  1413.     -d                        # check if name is a directory
  1414.     -f                        # check if name is a file
  1415.     -w                        # check if name is a file and writeable
  1416.     -q                        # don't quote file names with special characters
  1417.  
  1418. -
  1419. Exit            # exit from a command file
  1420. Exit [status] [If expression]
  1421.  
  1422. -
  1423. Export            # make variables available to commands
  1424. Export [-r | -s | name…]  > exports
  1425.     -r                        # generate Unexport commands for all exported variables
  1426.     -s                        # print the names only
  1427.  
  1428. -
  1429. FileDiv         # divide a file into several smaller files
  1430. FileDiv [option…] file [prefix]  ≥ progress
  1431.     -b                        # input is a byte stream instead of lines
  1432.     -f                        # split file at formfeed character
  1433.     -n splitPoint            # split file after splitPoint lines or bytes (-b)
  1434.     -p                        # write progress information to diagnostics
  1435.     -s n                    # set -b input buffer to n * 512 bytes
  1436.  
  1437. -    
  1438. Files            # list files and directories
  1439. Files [option…] [name…]  > fileList
  1440.     -c creator                # list only files with this creator
  1441.     -d                        # list only directories
  1442.     -f                        # list full pathnames
  1443.     -i                        # treat all arguments as files
  1444.     -l                        # long format (type, creator, size, dates, etc.)
  1445.     -m columns                # n column format, where n = columns
  1446.     -n                        # don't print header in long or extended format
  1447.     -o                        # omit directory headers
  1448.     -q                        # don't quote filenames with special characters
  1449.     -r                        # recursively list subdirectories
  1450.     -s                        # suppress the listing of directories
  1451.     -t type                 # list only files of this type
  1452.     -x format                # extended format with the fields specified by format
  1453.     
  1454.     Note: The following characters can specify the format
  1455.         a    Flag attributes
  1456.         b    Logical size, in bytes, of the data fork
  1457.         r    Logical size, in bytes, of the resource fork
  1458.         c    Creator of File ("Fldr" for folders)
  1459.         d    Creation date
  1460.         k    Physical size in kilobytes of both forks
  1461.         m    Modification date
  1462.         t    Type
  1463.         o    Owner (only for folders on a file server)
  1464.         g    Group (only for folders on a file server)
  1465.         p    Privileges (only for folders on a file server)
  1466.  
  1467. -    
  1468. Find            # find and select a text pattern
  1469. Find [-c count] selection [window]
  1470.     -c count                # find the nth selection, where n = count
  1471.  
  1472. -
  1473. Flush            # flush the tools that the Shell has cached
  1474. Flush
  1475.  
  1476. -
  1477. For             # repeat commands once per parameter
  1478. For name In word…
  1479.     command…
  1480. End
  1481.  
  1482. -
  1483. Format            # set or display formatting options for a window
  1484. Format [[-f font] [-s fontsize] [-t tabsize] [-a attr]] | [-x fmt] [window…]
  1485.     -f fontName             # set font to fontName
  1486.     -s fontSize             # set the font size to fontSize
  1487.     -t tabSize                # set the tab size to tabSize
  1488.     -a attr                 # set the auto indent and show invisibles flags
  1489.     -x fmt                    # output the current format in the specified format
  1490.     
  1491.     Note: The following attributes may be used with the -a option:
  1492.         A    auto indentation on
  1493.         a    auto indentation off
  1494.         I    show invisibles on
  1495.         i    show invisibles off
  1496.         L    lock auto scrolling
  1497.         l    unlock auto scrolling
  1498.     
  1499.     Note: The following characters may be used with the -x option:
  1500.         f    font name
  1501.         s    font size
  1502.         t    tab size
  1503.         a    attributes
  1504.  
  1505. -
  1506. Get                # get a record from an indexed file
  1507. Get (dataFile… | -dfl listfFle) [-x] [-k key] [-width w] [-d default key] [-h | -h2] 
  1508.     [-l] [-m] [-nf] [-q] [-s] [-search] [-t] [-sfl] [-y] [-field field list 
  1509.     [-format format string] ] [-lessFields field list]
  1510.     
  1511.     dataFile                # a specially formatted help file which must be
  1512.                             # accompanied by an index file whose name is of
  1513.                             # the form: dataFile.index, and whose type is 'btre'
  1514.     -dfl listFile            # listFile contains a list of datafiles
  1515.     -k keyword                # keyword in the datafile's index file
  1516.     -width w                 # column format for key lists, w = 1..200 is the 
  1517.                             #     window width in characters
  1518.     -d default                # use default keyword if no keyword is specified
  1519.     -h                        # write full header
  1520.     -h2                        # write short header (only the used datafile)
  1521.     -l                        # list all keys in the first data file that begin
  1522.                             #     with nnn, where nnn is the keyword following -k
  1523.     -lessFields tag [,tag]…    # remove the named items from the existing field
  1524.                             #     list (default list or as specified by -field)
  1525.     -m                        # select the key word that was found and assign
  1526.                             #    a marker to the selection
  1527.     -nf                        # no filtering; include field tags
  1528.     -q                        # quiet output when keyword not found
  1529.     -s                        # use the selection in the active window as keyword
  1530.     -search                    # text search datafile for occurrences of keyword
  1531.     -t                        # write out template of the requested function/procedure
  1532.     -field tag[,tag]…        # specify the data field(s) to display
  1533.     -format format_string    # specify string(s) to be output in front of data
  1534.                             # specified in -field option.  '%s' flags in string 
  1535.                             #     correspond ordinally to tags in -field option
  1536.     -sfl                    # produce ordered list of data files 
  1537.                             #     (requires -dfl listFile)
  1538.     -x                        # create or update the cross reference index file
  1539.     -y                        # do not present dialog before (re)building index file
  1540.  
  1541. -
  1542. GetErrorText    # display error messages based on message number
  1543. GetErrorText [-f filename] [-s filename] [-n] [-p] errnbr[,insert,…] …
  1544. GetErrorText -i idnbr,…
  1545.                 # display error messages based on message number
  1546.     -f filename             # explicit error msg file
  1547.     -i idnbr                # report meaning of System Error Handler ID number
  1548.     -n                        # suppress error numbers in displayed messages
  1549.     -p                        # write SysErrs's version info to diagnostics
  1550.     -s filename             # explicit system error msg file (default SysErrs.Err)
  1551.  
  1552. -
  1553. GetFileName     # display a Standard File dialog box
  1554. GetFileName [-q] [-s]
  1555.             [-c | [(-t type)… | -p | -d | -wd] [-m message] [-b buttontitle] [pathname]]
  1556.     -b buttontitle            # specify the default button's title
  1557.     -c                        # write current standard file path to standard output
  1558.     -d                        # select a directory
  1559.     -wd                        # select a directory on a non-locked volume
  1560.     -m message                # specify a prompt
  1561.     -p                        # select a new filename (SFPutFile) 
  1562.     -q                        # suppress quoting of filenames
  1563.     -s                        # return 0 status even if cancel is clicked
  1564.     -t type                 # specify file type for SFGetFile dialog
  1565.  
  1566. -
  1567. GetListItem     # display items for selection in a dialog box
  1568. GetListItem [option…] [[item…] | < file]
  1569.     -c[ancel]                # return a status of 0 even when cancel is clicked
  1570.     -d[efault] item         # item is entered in list and comes up selected
  1571.     -m[essage] message        # display message in dialog above the list
  1572.     -q[uote]                # don't quote items in the output
  1573.     -r[ows] rows            # make the list with this many rows
  1574.     -s[ingle]                # only allow a single selection
  1575.     -sort                    # sort input list
  1576.     -w[idth] width            # make the list this many pixels wide
  1577.  
  1578. -    
  1579. Help            # write summary information
  1580. Help [-f helpfile] [command…]  > helpInformation
  1581.     -f helpfile             # alternate helpfile (default MPW.Help)
  1582.  
  1583. -
  1584. If                # conditional command execution
  1585. If expression
  1586.     command…
  1587. [Else If expression
  1588.     command… ] …
  1589. [Else
  1590.     command… ]
  1591. End
  1592.  
  1593. -    
  1594. Lib             # combine object files into a library file
  1595. Lib [option…] objectFile…  ≥ progress
  1596.     -d                        # suppress duplicate definition warnings
  1597.     -df deleteFile            # delete modules listed in file deleteFile
  1598.     -dm name[,name]…        # delete external modules and entry points
  1599.     -dn name[,name]…        # delete external names, making them local
  1600.     -f                        # allow FORTRAN-style common data
  1601.     -mf                     # use MultiFinder temporary memory if necessary
  1602.     -o name                 # write object file name (default Lib.Out.o)
  1603.     -p                        # write progress information to diagnostics
  1604.     -rn    OldNameA=NewNameA    # change module name(s) OldNameA to NewNameA,
  1605.       [,OldNameB=NewNameB]…    #      OldNameB to NewNameB, etc.
  1606.     -sg newSeg=old[,old]…    # merge old segments into new segment
  1607.     -sn oldSeg=newSeg        # change segment name oldSeg to newSeg
  1608.     -sym [On | Full]        # keep symbolic information (default)
  1609.          [Off]                # discard symbolic information, can be followed by:
  1610.             [,NoLabels]     #    discard label information
  1611.             [,NoLines]        #    discard source line information
  1612.             [,NoTypes]        #    discard type information
  1613.             [,NoVars]        #    discard variable information
  1614.     -ver N                    # set OMF file version number to N
  1615.     -w                        # suppress warnings
  1616.  
  1617. -
  1618. Line            # find line in the target window
  1619. Line n
  1620.  
  1621. -
  1622. Link            # link an application, tool, or resource
  1623. Link [option…] objectFile…    > map ≥ progress
  1624.     -ac alignment            # align code modules to 'n' byte boundaries
  1625.     -ad alignment            # align data modules to 'n' byte boundaries
  1626.     -br on                    # generate branch islands where needed
  1627.     -br off                    # do not generate branch islands (default)
  1628.     -c creator                # set resourceFile creator (default ????)
  1629.     -d                        # suppress duplicate definition warnings
  1630.     -da                     # desk accessory - add NULL to segment names
  1631.     -f                        # allow FORTRAN-style common data
  1632.     -l                        # write a location map to output
  1633.     -la                     # -l, include anonymous symbols in location map
  1634.     -lf                     # -l, include file and location of definitions
  1635.     -m mainEntry            # use mainEntry as main entry point
  1636.     -ma name=alias            # create an alias for module name
  1637.     -map                    # generate "friendly" link map
  1638.     -mf                     # use MultiFinder temporary memory if necessary
  1639.     -model far                # process 32-bit load-time relocatable references
  1640.     -model near                # prohibit 32-bit load-time relocatable references
  1641.     -msg keyword[,…]        # message options
  1642.         [no]dup             #    (suppress) warnings about duplicate symbols
  1643.         [no]multiple        #    (suppress) multiple undefined symbol reports
  1644.         [no]warn            #    (suppress) warning messages
  1645.     -o resourceFile         # write resourceFile (default Link.Out)
  1646.     -opt [Off]                # disable Object Pascal optimizations (default)
  1647.          [On ]                # enable optimizations
  1648.          [NoBypass]         # enable optimizations, but always dispatch
  1649.             [,Info]         #    write optimization information to diagnostics
  1650.             [,Names]        #    include MacsBug symbols within SelectorProc modules
  1651.     -p                        # write progress information to diagnostics
  1652.     -pg size                # set page size to "size"; max: 32K; min: 1024; default: 2048 
  1653.     -ra [seg]=attr[,attr…]    # set segment resource attributes:
  1654.         $xx (or) nnn        #    a hex or decimal attribute you figure out
  1655.         resSysHeap            #    or a comma-seperated list of resource
  1656.         resPurgeable        #     attributes by name
  1657.         resLocked            #    
  1658.         resProtected        #    
  1659.         resPreload            #    
  1660.         resChanged            #    (essentially ignored)
  1661.     -rn                     # don't include resource names in resourceFile
  1662.     -rt type[=id]             # set resource type and lowest id (default CODE=0)    
  1663.     -sg newSeg[=old[,old]…]    # merge old segments into new segment
  1664.     -sn oldSeg=newSeg        # change segment name oldSeg to newSeg
  1665.     -srt                    # sort global data by "near" and "far" references (default)
  1666.     -ss size                # maximum segment size (default 32760)
  1667.     -sym [Off]                # disable symbolic output (default)
  1668.          [On | Full]        # enable symbolic output, can be followed by:
  1669.             [,NoLabels]     #    omit label information
  1670.             [,NoLines]        #    omit source line information
  1671.             [,NoTypes]        #    omit type information
  1672.             [,NoVars]        #    omit variable information
  1673.     -t type                 # set resourceFile type (default APPL)
  1674.     -uf unrefFile            # write list of unreferenced modules to unrefFile
  1675.     -w                        # suppress warnings
  1676.     -wrap                     # when jump table space is exhausted, put excess jump table 
  1677.                                #     entries in global data space, if available
  1678.     -x crossRefFile         # write cross reference to crossRefFile
  1679.  
  1680. -    
  1681. Loop            # repeat commands until Break
  1682. Loop
  1683.     command…
  1684. End
  1685.  
  1686. -    
  1687. Make            # build up-to-date version of a program
  1688. Make [option…] target…    > commands ≥ progress
  1689.     -d name[=value]         # define variable name as value (overrides makefile)
  1690.     -e                        # rebuild everything regardless of dates
  1691.     -f makefile             # read dependencies from makefile (default MakeFile)
  1692.     -p                        # write progress information to diagnostics
  1693.     -r                        # write roots of dependency graph to output
  1694.     -s                        # write structure of target dependencies to output
  1695.     -t                        # touch dates of targets and prerequisites
  1696.     -u                        # identify targets in makefile not reached in build
  1697.     -v                        # write verbose explanations to diagnostics
  1698.     -w                        # suppress warnings
  1699.     -y                        # like -v, but omit announcing up-to-date targets
  1700.  
  1701. -
  1702. MakeErrorFile    # create error message textfile
  1703. MakeErrorFile [option…] [file…]  < file > listing ≥ progress
  1704.     -l                        # write listing to standard output
  1705.     -o file/dir             # output file or directory
  1706.     -p                        # write progress information to diagnostics
  1707.  
  1708. -
  1709. Mark            # assign a marker to a selection
  1710. Mark [-y | -n] selection name [window]
  1711.     -y                        # replace existing marker (avoids dialog)
  1712.     -n                        # don't replace existing marker (avoids dialog)
  1713.  
  1714. -
  1715. Markers         # list markers
  1716. Markers [-q] [window]
  1717.     -q                        # don't quote the marker names
  1718.  
  1719. -
  1720. MatchIt         # semi-intelligent language sensitive bracket matcher
  1721. MatchIt [-a[sm] | -p[ascal] | -c] [-h] [-l] [-n] [-v] [window]
  1722.     -a[sm]                    # target language is Assembler
  1723.     -p[ascal]                # target language is Pascal
  1724.     -c                        # target language is C
  1725.     -h                        # highlight all characters enclosed by match
  1726.     -l                        # highlight entire lines containing match
  1727.     -n                        # generate error message if no match
  1728.     -v                        # display MatchIt's version number
  1729.  
  1730. -
  1731. MergeBranch      # merge a branch revision onto the trunk
  1732. MergeBranch file…
  1733.  
  1734. -
  1735. ModifyReadOnly    # enables read-only Projector files to be edited
  1736. ModifyReadOnly file…
  1737.  
  1738. -
  1739. Mount            # mount volumes
  1740. Mount drive…
  1741.  
  1742. -
  1743. MountProject    # mount projects
  1744. MountProject ([-s] [-pp] [-q] [-r]) | [Project]
  1745.     -s                        # print names only, not commands
  1746.     -pp                     # list mounted projects using project paths
  1747.     -q                        # don't quote names with special characters
  1748.     -r                        # list projects recursively
  1749.  
  1750. -
  1751. Move            # move files and directories
  1752. Move [-y | -n | -c] [-p] name… target  ≥ progress
  1753.     -y                        # overwrite target files (avoids dialog)
  1754.     -n                        # don't overwrite target files (avoids dialog)
  1755.     -c                        # cancel if conflict occurs (avoids dialog)
  1756.     -p                        # write progress information to diagnostics
  1757.  
  1758. -
  1759. MoveWindow        # move window to h,v location
  1760. MoveWindow [h v] [-i] [window]
  1761.     h                        # horizontal position of top left corner
  1762.     v                        # vertical position of top left corner
  1763.     -i                        # ignore positioning errors
  1764.  
  1765. -
  1766. NameRevisions    # define a symbolic name
  1767. NameRevisions [-u User] [-project Project] [-public | private | -b] [-r]
  1768.         [[-only] | name [[-expand] [-s] | [-replace] [-dynamic] [names… | -a]]]
  1769.     -u user                 # name of current user
  1770.     -private                # create a private name
  1771.     -project project        # name of project that contains the revisions
  1772.     -public                 # create a public name (the default)
  1773.     -b                        # print both public and private names
  1774.     -expand                 # evaluate names to revision level before printing
  1775.     -only                    # only print the names, not the associated revisions
  1776.     -replace                # completely overwrite the previous definition of name
  1777.     -dynamic                # evaluate names to revision level when using not defining
  1778.     -r                        # recursively execute NameRevisions starting with current project
  1779.     -s                        # print a single name per line
  1780.     -a                        # all the files in the project
  1781.  
  1782. -
  1783. New             # open a new window
  1784. New [name…]
  1785.  
  1786. -
  1787. Newer            # compare modification dates of files
  1788. Newer [-c] [-e] [-q] file… target > newer
  1789.     -c                        # compare creation dates
  1790.     -e                        # report names that have same (equal) mod date as target
  1791.     -q                        # don't quote file names with special characters
  1792.  
  1793. -
  1794. NewFolder        # create a new folder
  1795. NewFolder name…
  1796.  
  1797. -
  1798. NewProject        # create a new project
  1799. NewProject -w | -close | ([-u user] [-cs comment | -cf file] project)
  1800.     -cf file                # the comment is contained in file.
  1801.     -close                    # close the New Project window
  1802.     -cs comment             # a short description of the project
  1803.     -w                        # open the New Project window
  1804.     -u user                 # name of current user
  1805.  
  1806. -
  1807. Open            # open file(s) in window(s)
  1808. Open [-n | -r] [-t] [name…]
  1809.     -n                        # open new file (default name Untitled)
  1810.     -r                        # open file for read-only use
  1811.     -t                        # open file as the target window
  1812.  
  1813. -
  1814. OrphanFiles     # remove Projector information from a list of files
  1815. OrphanFiles file…
  1816.  
  1817. -
  1818. Parameters        # write parameters
  1819. Parameters [parameter…]  > parameters
  1820.  
  1821. -
  1822. Pascal            # Pascal compiler
  1823. Pascal [option…] [file…]  < file ≥ progress
  1824.     -b                        # generate A5 references for procedure addresses
  1825.     -c                        # syntax check only, don't create object file
  1826.     -clean                    # erase all symbol table resources
  1827.     -d name=(TRUE|FALSE)    # set compile time variable name
  1828.     -e file                 # write errors to file
  1829.     -forward                # allow only explicit forward and external object declarations
  1830.     -h                        # suppress error messages regarding unsafe handles
  1831.     -i directory,…            # search for includes in directory,…
  1832.     -k directory            # create symbol table resource files in directory
  1833.     -m                        # allow greater than 32K globals by using 32 bit references
  1834.     -mbg ch8                # include v2.0 compatible MacsBug symbols
  1835.     -mbg full                # include full (untruncated) symbols for MacsBug
  1836.     -mbg off                # don't include symbols for MacsBug
  1837.     -mbg number             # include MacsBug symbols truncated to length number
  1838.     -mc68020                # generate MC68020 code 
  1839.     -mc68881                # generate MC68881 code for floating point operations
  1840.     -model farCode|         # generate load-time relocatable 32-bit references for
  1841.         farData|far            #    code, data, or both
  1842.     -model nearCode|        # generate 16-bit references for code, data, or both 
  1843.         nearData|near        #    (the default)
  1844.     -n                        # generate separate global data modules for better allocation
  1845.     -noload                 # don't use or create any symbol table resources
  1846.     -o objname                # generate code in file or directory objname
  1847.     -only name…                # only generate code for named modules
  1848.     -opt off                # don't apply code optimizations
  1849.     -opt on | full            # choose level of code optimization (full is default);
  1850.                             #    can modify with [,nopeep] [,nostatic]    
  1851.     -ov                     # generate code to test for overflow
  1852.     -p                        # write progress information to diagnostics
  1853.     -r                        # don't generate range checking code
  1854.     -rebuild                # rebuild all symbol table resources
  1855.     -sym off                # don't generate SADE records
  1856.     -sym on | full            # generate SADE records; can modify with [,nolines] [,notypes] [,novars]
  1857.     -t                        # write compilation time to diagnostics
  1858.     -u                        # initialize all data to $7267 for debugging use
  1859.     -y directory            # create temporary files in directory
  1860.  
  1861. -    
  1862. PasMat            # Pascal programs formatter
  1863. PasMat [option…] [input [output]]  < input > output ≥ progress
  1864.     -a                        # set a-  disable CASE label bunching
  1865.     -b                        # set b+  enable IF bunching
  1866.     -body                    # set body+ to disable indenting procedure bodies
  1867.     -c                        # set c+  suppress Return before BEGIN
  1868.     -d                        # set d+  use {…} comment delimiters
  1869.     -e                        # set e+  capitalize identifiers
  1870.     -entab                    # replace multiple blanks with tabs
  1871.     -f                        # set f-  disable formatting
  1872.     -g                        # set g+  group assignment and call statements
  1873.     -h                        # set h-  disable FOR, WHILE, WITH bunching
  1874.     -i directory,…            # search for includes in directory,…
  1875.     -in                     # set in+ process includes
  1876.     -k                        # set k+  indent statements between BEGIN and END
  1877.     -l                        # set l+  literally copy reserved words, identifiers
  1878.     -list file                # write listings to file
  1879.     -n                        # set n+  group formal parameters
  1880.     -o width                # set output line width (default 80)
  1881.     -p                        # write progress information to diagnostics
  1882.     -pattern -old-new-        # modify include names, changing old to new
  1883.     -q                        # set q+  no special ELSE IF formatting
  1884.     -r                        # set r+  upper case reserved words
  1885.     -rec                    # set rec+ to indent field lists under defined id
  1886.     -s file                 # substitute identifiers based on pairs in file
  1887.     -t tab                    # set output tab setting (default 2)
  1888.     -u                        # rename identifiers to match first occurence
  1889.     -v                        # set v+  put THEN on separate line
  1890.     -w                        # set w+  upper case identifiers
  1891.     -x                        # set x+  suppress space around operators
  1892.     -y                        # set y+  suppress space around :=
  1893.     -z                        # set z+  suppress space after commas
  1894.     -:                        # set :+  align colons in VAR declarations
  1895.     -@                        # set @+  multiple CASE tags on separate lines
  1896.     -∂#                     # set #+  smart grouping of assignments and calls
  1897.     -_                        # set _+  delete _ from identifiers
  1898.  
  1899. -    
  1900. PasRef            # Pascal cross-referencer
  1901. PasRef [option…] [file…]  < file > crossReference ≥ progress
  1902.     -a                        # process includes and units each time encountered
  1903.     -c                        # process includes and units only once
  1904.     -cond                    # process $SETC and $IFC, $ELSEC, $ENDC conditionals
  1905.     -d                        # process each file separately
  1906.     -d name=TRUE|FALSE        # set $SETC variable name to TRUE or FALSE
  1907.     -i directory,…            # search for includes in directory,…
  1908.     -l                        # write identifiers in lower case
  1909.     -mc68020                # source contains {$IFC OPTION(MC68020)} directives
  1910.     -mc68881                # source contains {$IFC OPTION(MC68881)} directives
  1911.     -n                        # don't process USES or includes
  1912.     -ni | -noi[ncludes]     # don't process include files
  1913.     -nl | -nol[istings]     # don't list the input
  1914.     -nolex                    # don't write lexical information
  1915.     -nt | -not[otal]        # don't write total line count
  1916.     -nu | -nou[ses]         # don't process USES declarations   
  1917.     -o                        # source written using Object Pascal
  1918.     -p                        # write progress information to diagnostics
  1919.     -s                        # don't write include and USES filenames
  1920.     -t                        # cross reference by total line number
  1921.     -u                        # write identifiers in upper case
  1922.     -w width                # set output line width (default 110)
  1923.     -x width                # set maximum identifier width
  1924.  
  1925. -
  1926. Paste            # replace selection with Clipboard contents
  1927. Paste [-c count] selection [window]
  1928.     -c count                # repeat the Paste count times
  1929.  
  1930. -
  1931. PerformReport    # generate a performance report
  1932. PerformReport [option…]  > reportFile ≥ progress
  1933.     -a                        # list all procedures, in segment order
  1934.                             # (default: produce only partial list, sorted by %)
  1935.     -l linkDataFile         # read link map file (concatenated with ROM.list)
  1936.     -m measurementsFile     # read performance measurements file
  1937.                             # (default: "Perform.Out")
  1938.     -n NN                    # show the top NN procedures (default: 50)
  1939.     -p                        # write progress information to diagnostics
  1940.  
  1941. -
  1942. Position        # display current line position
  1943. Position [-l | -c] [window…]
  1944.     -l                        # only list the line number
  1945.     -c                        # only list the character offsets
  1946.  
  1947. -
  1948. Print            # print text files
  1949. Print [option…] file…  < file ≥ progress
  1950.     -b                        # print a border around the text
  1951.     -b2                     # alternate form of border
  1952.     -bm n[.n]                # bottom margin in inches (default 0)
  1953.     -c[opies] n             # print n copies
  1954.     -ff string                # treat "string" at beginning of line as a formfeed
  1955.     -f[ont] name            # print using specified font
  1956.     -from n                 # begin printing with page n
  1957.     -h                        # print headers (time, file, page)
  1958.     -hf[ont] name            # print headers using specified font
  1959.     -hs[ize] n                # print headers using specified font size
  1960.     -l[ines] n                # print n lines per page
  1961.     -lm n[.n]                # left margin in inches (default .2778)
  1962.     -ls n[.n]                # line spacing (2 means double-space)
  1963.     -md                     # use modification date of file for time in header
  1964.     -n                        # print line numbers to left of text
  1965.     -nw [-]n                # width of line numbers, - indicates zero padding
  1966.     -p                        # write progress information to diagnostics
  1967.     -page n                 # number pages beginning with n
  1968.     -ps filename            # include PostScript file as background for each page
  1969.     -q quality                # print quality (HIGH, STANDARD, DRAFT)
  1970.     -r                        # print pages in reverse order
  1971.     -rm n[.n]                # right margin in inches (default 0)
  1972.     -s[ize] n                # print using specified font size
  1973.     -t[abs] n                # consider tabs to be n spaces
  1974.     -title title            # include title in page headers
  1975.     -tm n[.n]                # top margin in inches (default 0)
  1976.     -to n                    # stop printing after page n
  1977.  
  1978. -
  1979. ProcNames        # display Pascal procedure and function names
  1980. ProcNames [option…] [file…]  < file ≥ progress
  1981.     -b                        # display line info for procedure body
  1982.     -c                        # process includes and units only once
  1983.     -cond                    # process $SETC and $IFC, $ELSEC, $ENDC conditionals
  1984.     -d                        # reset total line count to 1 on each new file
  1985.     -d name=TRUE|FALSE        # set $SETC variable name to TRUE or FALSE
  1986.     -e                        # suppress page eject between each procedure listing
  1987.     -f                        # PasMat format compatibility mode
  1988.     -i pathname,…            # search for includes or USES in directory,…
  1989.     -l n                    # process only to max nesting level n
  1990.     -m                         # generate MPW Mark commands for procedure and function declarations
  1991.     -mc68020                # source contains {$IFC OPTION(MC68020)} directives
  1992.     -mc68881                # source contains {$IFC OPTION(MC68881)} directives
  1993.     -n                        # suppress line number and level information
  1994.     -o                        # source file is an Object Pascal program
  1995.     -p                        # write progress information to diagnostics
  1996.     -u                        # process USES declarations
  1997.  
  1998. -
  1999. Project         # set or write the current project
  2000. Project [-q | projectName]    > project
  2001.     -q                        # don't quote projects with special characters
  2002.  
  2003. -
  2004. ProjectInfo     # display information about a Project
  2005. ProjectInfo [-project project] [-comments] [-latest] [-f] [-r] [-s] [-only | -m]
  2006.             [-af author | -a author] [-df dates | -d dates] [-cf pattern | -c pattern]
  2007.             [-t pattern] [-n name] [-newer | -update] [file…]
  2008.     -a author                # only list revisions created by author
  2009.     -af author                # only list files created by author
  2010.     -c pattern                # only list revisions whose comment contains pattern
  2011.     -cf pattern             # only list files whose comment contains pattern
  2012.     -comments                # list comments along with the rest of the information
  2013.     -d dates                # only list revisions whose create date is within dates
  2014.     -df dates                # only list files whose mod date is within dates
  2015.     -f                        # list file information
  2016.     -log                    # print project log
  2017.     -m                        # only list files/revisions that are checked out
  2018.     -newer                    # info on files that would be checked out using this option
  2019.     -only                    # only list project information
  2020.     -project project        # name of project to get information on
  2021.     -r                        # recursively list subprojects
  2022.     -latest                 # only list info on the latest revision on the main trunk
  2023.     -s                        # short listing, names and revision names only
  2024.     -t pattern                # only list revisions whose task contains pattern
  2025.     -n name                 # only list revisions that have name
  2026.     -update                 # info on files that would be checked out using this option
  2027.     
  2028.     Note: pattern is either a literal string or /regular expression/.
  2029.     
  2030.     Note: "dates" may take the following forms:
  2031.         date                # on date
  2032.         <date                # before but not including date
  2033.         ≤date                # before and including date
  2034.         >date                # after and not including date
  2035.         ≥date                # after and including date
  2036.         date-date            # between and including dates
  2037.         
  2038.     Note:  A date is mm/dd/yy [[hh:mm[:ss]] [AM|PM]]
  2039.     
  2040.     Note: "name" may take the following forms:
  2041.         name                # in name
  2042.         <name                # before name
  2043.         ≤name                # before and including name
  2044.         >name                # after name
  2045.         ≥name                # after and including name
  2046.  
  2047. -    
  2048. Quit            # quit MPW
  2049. Quit [-y | -n | -c]
  2050.     -y                        # save all modified windows (avoids dialog)
  2051.     -n                        # do not save any modified windows (avoids dialog)
  2052.     -c                        # cancel if a window needs to be saved (avoids dialog)
  2053.  
  2054. -
  2055. Quote            # echo parameters, quoting if needed
  2056. Quote [-n] [parameter…]  > parameters
  2057.     -n                        # don't write return following the parameters
  2058.  
  2059. -    
  2060. Rename            # rename files and directories
  2061. Rename [-y | -n | -c] oldName newName
  2062.     -y                        # overwrite existing file (avoids dialog)
  2063.     -n                        # don't overwrite existing file (avoids dialog)
  2064.     -c                        # cancel if conflict occurs (avoids dialog)
  2065.  
  2066. -    
  2067. Replace         # replace the selection
  2068. Replace [-c count] selection replacement [window]
  2069.     -c count                # repeat the replace count times
  2070.  
  2071. -    
  2072. Request         # request text from a dialog box
  2073. Request [-q] [-d default] [message…] < file
  2074.     -q                        # don't set status if user selects cancel
  2075.     -d default                # set default response
  2076.  
  2077. -
  2078. ResEqual        # compares the resources in two files
  2079. ResEqual [-p] File1 File2
  2080.     -p                        # write progress information to diagnostics
  2081.  
  2082. -
  2083. Revert            # revert window to previous saved state
  2084. Revert [-y] [window…]
  2085.     -y                        # revert to old version (without dialog)
  2086.  
  2087. -
  2088. Rez             # resource compiler
  2089. Rez [option…] [file…]  < file ≥ progress
  2090.     -a[ppend]                # merge resource into output resource file
  2091.     -align word | longword    # align resource to word or longword boundries
  2092.     -c[reator] creator        # set output file creator
  2093.     -d[efine] name[=value]    # equivalent to: #define macro [value]
  2094.     -i[nclude] pathname     # path to search when looking for  #include files
  2095.     -m[odification]         # don't change the output file's modification date
  2096.     -o file                 # write output to file (default Rez.Out)
  2097.     -ov                     # ok to overwrite protected resources when appending
  2098.     -p                        # write progress information to diagnostics
  2099.     -rd                     # suppress warnings for redeclared types
  2100.     -ro                     # set the mapReadOnly flag in output
  2101.     -s[earch] pathname        # path to search when looking for INCLUDE resources
  2102.     -t[ype] type            # set output file type
  2103.     -u[ndef] name            # equivalent to: #undef name
  2104.  
  2105. -
  2106. RezDet            # detect inconsistencies in resources
  2107. RezDet [option…] file…    > dump
  2108.     -b[ig]                    # read resources one at a time, not all at once
  2109.     -d[ump]                 # write -show information, plus headers, lists, etc.
  2110.     -l[ist]                 # write list of resources with minimum information
  2111.     -q[uiet]                # don't write any output, just set {Status}
  2112.     -r[awdump]                # write -dump information plus contents
  2113.     -s[how]                 # write information about each resource
  2114.     
  2115.     Note: Use at most one of -quiet, -list, -show, -dump, and -rawdump.
  2116.  
  2117. -
  2118. RotateWindows   # send active (frontmost) window to back
  2119. RotateWindows [-r]
  2120.     -r                        # reverse rotation; bring bottom window to front
  2121.  
  2122. -
  2123. Save            # save specified windows
  2124. Save [-a | window…]
  2125.     -a                        # save the contents of all windows
  2126.  
  2127. -
  2128. SaveOnClose        # set save behavior when closing windows
  2129. SaveOnClose [-a | -d | -n] [window…]
  2130.     -a                        # always save upon close ("Close -y")
  2131.     -d                        # default behavior for Close
  2132.     -n                        # never save upon close ("Close -n")
  2133.  
  2134.  
  2135. -
  2136. Search          # search files for pattern
  2137. Search [-b] [-s | -i] [-nf] [-ns] [-r] [-sf] [-q] [-f file] pattern [file…] < file > found
  2138.     -b                        # break "File/Line" from matched pattern
  2139.     -i                        # case insensitive search (overriding {CaseSensitive})
  2140.     -s                        # case sensitive search (overriding {CaseSensitive})
  2141.     -nf                        # write error message if pattern not found
  2142.     -ns                        # return 0 when pattern not found
  2143.     -q                        # suppress file name and line number in output
  2144.     -r                        # write non-matching line to standard output
  2145.     -sf                        # stop at first match
  2146.     -f file                    # lines not written to output are put in this file
  2147.  
  2148. -
  2149. Set             # define or write Shell variables
  2150. Set [name [value]]    > variableList
  2151.  
  2152. -
  2153. SetDirectory    # set the default directory
  2154. SetDirectory directory
  2155.  
  2156. -
  2157. SetFile         # set file/folder attributes
  2158. SetFile [option…] file/folder…
  2159.     -a attributes            # attributes (lowercase = 0, uppercase = 1)*
  2160.     -c creator                # file creator
  2161.     -d date                 # creation date (mm/dd/yy [hh:mm[:ss] [AM | PM]])*
  2162.     -l h,v                    # ICON location (horizontal,vertical)*
  2163.     -m date                 # modification date (mm/dd/yy [hh:mm[:ss] [AM | PM]])*
  2164.     -t type                 # file type
  2165.  
  2166.     Note: Period (.) represents the current date and time.
  2167.     Note: The following attributes may be used with the -a option:
  2168.         L    Locked
  2169.         V    Invisible*
  2170.         B    Bundle
  2171.         S    System
  2172.         I    Inited*
  2173.         D    Desktop*
  2174.         M    Shared (can run multiple times)
  2175.         A    Always switch launch (if possible)
  2176.     *Note: Options/attributes marked with an asterisk (*) are allowed with folders
  2177.         
  2178.  
  2179. -
  2180. SetPrivilege    # set access privileges for directories on file servers
  2181. SetPrivilege [option…] directory…  > information
  2182.     -d privileges            # set privileges for seeing directories
  2183.     -f privileges            # set privileges for seeing files
  2184.     -g group                # make the directories belong to group
  2185.     -i                        # return information on directories
  2186.     -m privileges            # set privileges for making changes
  2187.     -o owner                # make owner the owner of directories
  2188.     -r                        # operate (set or list) recursively
  2189.  
  2190.     Note: The following privilege characters may be used with
  2191.     the -d, -f, or -m options (Upper case enables the privilege,
  2192.     lower case disables it):
  2193.          O     Owner
  2194.          G     Group
  2195.          E     Everyone
  2196.  
  2197. -
  2198. SetVersion        # maintain version and revision number
  2199. SetVersion [option…] file  > output ≥ progress
  2200.     -b                        # increment the bug fix component by 1
  2201.     -country name            # country code name
  2202.     -csource file            # update the #define Version string in C source
  2203.     -d                        # display (updated) version numbers to standard output
  2204.     -fmt nƒ.mƒ                # format version numbers according to specification
  2205.     -i resid                # use specified resource id instead of 0
  2206.     -p                        # write SetVersion's version info to diagnostic file
  2207.     -prefix prefix            # prefix version with specified prefix
  2208.     -[p]source file         # update the Version string constant in Pascal source
  2209.     -r                        # increment the revision component by 1
  2210.     -rezsource file         # update the resource definition in Rez source
  2211.     -sb bugfix                # set the bug fix component to the specified value
  2212.     -sr revision            # set the revision component to the specified value
  2213.     -stage stage            # set release stage for a 'vers' resource
  2214.     -suffix suffix            # suffix the version with specified suffix
  2215.     -sv version             # set the version component to the specified value
  2216.     -sx nonrel                # set the non-release component to the specified value
  2217.     -sync 1 | 2             # synchronize 'vers',1 with 'vers',2 or vice versa
  2218.     -t type                 # use specified resource type
  2219.     -v                        # increment the version component by 1
  2220.     -verid identifier        # use C/Pascal source version id instead of "Version"
  2221.     -version fmtstring        # alternate way of specifying version component actions
  2222.     -verstring longstring    # set the long version string of a Finder 'vers' resource
  2223.     -x                        # increment the non-release component by 1
  2224.  
  2225. -
  2226. Shift            # renumber command file positional parameters
  2227. Shift [number]
  2228.  
  2229. -
  2230. ShowSelection     # place the selection within an editor window
  2231. ShowSelection [-t | -b | -c | -n lines | -l line] [window]
  2232.     -t                        # place first line of selection at top of window
  2233.     -b                        # place first line of selection at bottom of window
  2234.     -c                        # center the first line within the window
  2235.     -n lines                # place first line of selection lines from the top
  2236.     -l line                    # place line at the top of window
  2237.  
  2238. -
  2239. Shutdown        # power down or restart the machine
  2240. Shutdown [-y | -n | -c] [-r]
  2241.     -y                        # save all modified windows (avoids dialog)
  2242.     -n                        # do not save any modified windows (avoids dialog)
  2243.     -c                        # cancel if a window needs to be saved (avoids dialog)
  2244.     -r                        # restart the machine
  2245.  
  2246. -
  2247. SizeWindow        # set a window's size
  2248. SizeWindow    [h v] [window]
  2249.     h                        # window width (horizontal)
  2250.     v                        # window height (vertical)
  2251.  
  2252. -
  2253. Sort            # sort or merge lines of text
  2254. Sort [option…] [files…]
  2255.     -b                        # skip leading blanks of each field
  2256.     -check                    # check if input is sorted (exit code 5 if not).
  2257.     -d                        # sort fields as decimal numbers
  2258.     -f field[,field]        # specify fields to sort on (see below)
  2259.     -fs string                # specify field separator characters
  2260.     -l                        # convert to lowercase before comparison
  2261.     -merge                    # merge pre-sorted input files
  2262.     -o file                 # specify output file, allows sorting-in-place
  2263.     -p                        # print version and progress information
  2264.     -quote                    # handle fields with quotes
  2265.     -stdin                    # place-holder for standard input (acts like a file)
  2266.     -r                        # reverse order of comparison
  2267.     -t                        # sort fields as text (default)
  2268.     -u                        # convert to uppercase before comparison
  2269.     -unique                 # write only unique output lines
  2270.     -x                        # sort fields as hexadecimal numbers (leading '$'
  2271.                             #    or '0x' is ignored)
  2272.  
  2273.     The comma-separated field specifications (following -f) take the forms:
  2274.     
  2275.             [F][.C][-K][bdlqrtux]
  2276.         or    [F][.C][+N][bdlqrtux]
  2277.  
  2278.     'F' is a field number (0=whole line [default], 1=first word, 2=second word…).
  2279.     'C' is the starting column number (from 1), default=1.
  2280.     'K' is the ending column number >= C, default=infinite.
  2281.     'N' is the maximum number of characters in the field, default=infinite.
  2282.     Only one of '-K' or '+N' can be specified.
  2283.     
  2284.     The local modifier characters 'bdlqrtux' have the same meaning on a
  2285.     per-field basis as -b, -d, -l, -q, -r, -t, -u and -x (which take effect
  2286.     globally).
  2287.  
  2288. -
  2289. StackWindows    # arrange windows diagonally
  2290. StackWindows [-h num] [-v num] [-r top,left,bottom,right] [-i | windows…]
  2291.     -h num                    # horizontal offset between windows
  2292.     -v num                    # vertical offset between windows
  2293.     -r t,l,b,r                # rectangle in which to stack windows
  2294.     -i                        # include the worksheet
  2295.     windows…                # list of windows to tile
  2296.  
  2297. -
  2298. StreamEdit        # scriptable text editor
  2299. StreamEdit [option…] file…
  2300.     -d                        # delete lines (don't copy them)
  2301.     -e statements            # add 'statements' to the script
  2302.     -o file                 # direct output to file in a "safe" manner
  2303.     -p                        # print progress information
  2304.     -s file                 # specify a file containing a script to execute
  2305.     -set variable[=string]    # set the value of a variable
  2306.  
  2307.     A script consists of zero or more of:
  2308.     
  2309.         <address> <command>…
  2310.  
  2311.     Addresses take the forms (highest to lowest precedence):
  2312.     
  2313.         ( address )             # override precedence
  2314.         ! address                # match line not matching the address
  2315.         address1 && address2    # match line matching address1 AND address2
  2316.         address1 || address2    # match line matching address1 OR address2
  2317.         address1 , address2     # match address1…address2
  2318.         /regular expression/    # a line that matches the expression
  2319.         •                        # matches BEFORE the first line
  2320.         N                        # matches the Nth line
  2321.         $                        # matches the last line
  2322.         ∞                        # matches AFTER the last line
  2323.  
  2324.     A regular expression starting with 'ç' is case-sensitive.  Any '•' must
  2325.     follow the 'ç'.
  2326.  
  2327.     Commands are:
  2328.     
  2329.         Append <text>            # append text to append buffer
  2330.         Exit [status]            # exit with zero or specified status
  2331.         Change <text>            # set contents of edit buffer
  2332.         Delete                    # clear contents of edit buffer
  2333.         Insert <text>            # append text to insert buffer
  2334.         Next                    # proceed with next line
  2335.         Print <text>            # Print the text
  2336.              [-To file ]        #     directed to the specified file
  2337.              [-AppendTo file]    #     appended to the specified file
  2338.         Replace /pat/ <text>    # do replacement
  2339.                 [-c count]        # specify repeat count (N or ∞)
  2340.         Set variable <text>     # set variable's value
  2341.             [-a]                #     append to variable's current value
  2342.             [-i]                #     insert at front of variable's current value
  2343.         Option AutoDelete        # append "1,$ Delete" to script
  2344.     
  2345.     Where <text> consists of zero or more of:
  2346.     
  2347.         "a string"                # the specified text
  2348.         'a string'                # the specified text
  2349.         .                        # the current line (the edit buffer)
  2350.         variableName            # the contents of the named string variable
  2351.         ®N                        # an "®" variable set by a regular expression
  2352.         -from <filename>        # the next line from the file, where filename
  2353.                                 #     is a string or a variable name
  2354.         -n                        # suppress newline at end
  2355.  
  2356.     If <text> is empty, it defaults to "." (the current line).
  2357.  
  2358. -
  2359. Target            # make a window the target window
  2360. Target name
  2361.  
  2362. -
  2363. TileWindows     # arrange windows in a tiled fashion
  2364. TileWindows [-h | -v] [-r top,left,bottom,right] [-i | windows…]
  2365.     -h                        # tile windows horizontally
  2366.     -v                        # tile windows vertically
  2367.     -r t,l,b,r                # rectangle in which to tile windows
  2368.     -i                        # include the worksheet
  2369.     windows…                # list of windows to tile
  2370.  
  2371. -
  2372. TransferCkid    # move Projector information from one file to another
  2373. TransferCkid sourceFile destinationFile 
  2374.  
  2375. -
  2376. Translate        # translate characters
  2377. Translate [-p] [-s] src [dst] < file > output ≥ progress
  2378.     -p                        # write progress information to diagnostics
  2379.     -s                        # set font, font size, and tab setting of output
  2380.  
  2381. -
  2382. Unalias         # remove aliases
  2383. Unalias [name…]
  2384.  
  2385. -
  2386. Undo            # undo the last edit
  2387. Undo [window]
  2388.  
  2389. -
  2390. Unexport        # remove variable definitions from the export list
  2391. Unexport [-r | -s | name…]    > unexports
  2392.     -r                        # generate Export commands for all unexported variables
  2393.     -s                        # print the names only
  2394.  
  2395. -
  2396. Unmark            # remove a marker from a window
  2397. Unmark name… window
  2398.  
  2399. -
  2400. Unmount         # unmount volumes
  2401. Unmount volume…
  2402.  
  2403. -
  2404. UnmountProject    # unmount projects
  2405. UnmountProject -a | Project…
  2406.     -a                        # unmount all mounted projects
  2407.  
  2408. -
  2409. Unset            # remove Shell variable definitions
  2410. Unset [name…]
  2411.  
  2412. -
  2413. UserVariables    # uses Commando to set all the user variables
  2414. UserVariables
  2415.  
  2416. -
  2417. Version            # print the version of the MPW Shell
  2418.  
  2419. -
  2420. Volumes         # list mounted volumes
  2421. Volumes [-l] [-q] [volume…] > volumeList
  2422.     -l                        # long format (name, drive, size, free, files, dirs)
  2423.     -q                        # don't quote volume names with special characters
  2424.  
  2425. -
  2426. WhereIs         # find the location of a file
  2427. WhereIs [-c] [-d] [-v] [-s directory]… pattern
  2428.     -c                        # completely match filepattern
  2429.     -d                        # include directories
  2430.     -v                        # verbose output - put summary line at end
  2431.     -s directory            # starting directory/volume for search
  2432.  
  2433. -
  2434. Which            # determine which file the shell will execute
  2435. Which [-a] [-p] [name]    > file ≥ progress
  2436.     -a                        # report all commands named "name"
  2437.     -p                        # writes progress information to diagnostics
  2438.  
  2439. -
  2440. Windows            # list windows
  2441. Windows [-q] [-o]
  2442.     -q                        # don't quote window names with special characters
  2443.     -o                        # list "Open" command lines for execution
  2444.  
  2445. -
  2446. ZoomWindow        # enlarge or reduce a window's size
  2447. ZoomWindow [-b | -s] [window]
  2448.     -b                        # zoom to full screen (big)
  2449.     -s                        # zoom back to regular size (small)
  2450.